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."'");
        }
    }
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."'");
        }
    }
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 . "'" ) ; } }
Execute and buffers command result to print it

@throws \InvalidArgumentException When the command couldn't be executed
Execute and buffers command result to print it