src/package/Support/Executor.php
public function exec($command, $runDir = null, Closure $callback = null, $timeout = null)
    {
        $process = new Process($command, $runDir);

        $process->setTimeout($timeout);

        $this->startedAt = Carbon::now();

        $process->run($callback);

        $this->endedAt = Carbon::now();

        return $process;
    }
public function exec($command, $runDir = null, Closure $callback = null, $timeout = null)
    {
        $process = new Process($command, $runDir);

        $process->setTimeout($timeout);

        $this->startedAt = Carbon::now();

        $process->run($callback);

        $this->endedAt = Carbon::now();

        return $process;
    }
public function exec ( $ command , $ runDir = null , Closure $ callback = null , $ timeout = null ) { $ process = new Process ( $ command , $ runDir ) ; $ process -> setTimeout ( $ timeout ) ; $ this -> startedAt = Carbon :: now ( ) ; $ process -> run ( $ callback ) ; $ this -> endedAt = Carbon :: now ( ) ; return $ process ; }
Execute one command.

@param $command
@param null         $runDir
@param Closure|null $callback
@param null         $timeout

@return Process
Execute one command .