public buildCommand ( ) : string | ||
return | string |
public function buildCommand()
{
$command = $this->command . ' > ' . $this->_output . ' 2>&1 &';
return $this->_user ? 'sudo -u ' . $this->_user . ' ' . $command : $command;
}