public function sendProcess($command, $contentType = "text/plain") {
        $this['response']->setBody(new \Guzzle\Stream\Stream(popen($command, 'r')));
        $this['response']->setHeader("Content-Type", $contentType);
    }
public function sendProcess($command, $contentType = "text/plain") {
        $this['response']->setBody(new \Guzzle\Stream\Stream(popen($command, 'r')));
        $this['response']->setHeader("Content-Type", $contentType);
    }
public function sendProcess ( $ command , $ contentType = "text/plain" ) { $ this [ 'response' ] -> setBody ( new \ Guzzle \ Stream \ Stream ( popen ( $ command , 'r' ) ) ) ; $ this [ 'response' ] -> setHeader ( "Content-Type" , $ contentType ) ; }
Send a Process

This method streams a process to a client

@param  string $command     The command to run
@param  string $contentType Optional content type of the stream
@api
Send a Process