src/App.php
public static function execute( $command, $directory = null, $timeout = 120 ) {
		$directory = $directory !== null ? $directory : getcwd();

		$process = new Process( $command, null, null, null, $timeout );
		$process->setWorkingDirectory( $directory );
		$process->mustRun();

		return $process->getOutput();
	}
public static function execute( $command, $directory = null, $timeout = 120 ) {
		$directory = $directory !== null ? $directory : getcwd();

		$process = new Process( $command, null, null, null, $timeout );
		$process->setWorkingDirectory( $directory );
		$process->mustRun();

		return $process->getOutput();
	}
public static function execute ( $ command , $ directory = null , $ timeout = 120 ) { $ directory = $ directory !== null ? $ directory : getcwd ( ) ; $ process = new Process ( $ command , null , null , null , $ timeout ) ; $ process -> setWorkingDirectory ( $ directory ) ; $ process -> mustRun ( ) ; return $ process -> getOutput ( ) ; }
Run a shell command.

@param  string      $command
@param  string|null $directory
@param  integer     $timeout
@return string
Run a shell command .