private function executeWithOutput()
    {
        if (($fp = popen($this->command, "r"))) {
            while (!feof($fp)) {
                echo fread($fp, 1024);
                flush();
            }

            fclose($fp);
        } else {
            throw new \InvalidArgumentException("Cannot execute command: '".$this->command."'");
        }
    }