public function run($cmd)
    {
        $cmd = "{$this->phpBinaryPath} {$this->file} $cmd";
        $cmd = $this->isWindows() === true
            ? $cmd = "start /b {$cmd}"
            : $cmd = "{$cmd} > /dev/null 2>&1 &";

        pclose(popen($cmd, 'r'));

        return true;
    }
public function run($cmd)
    {
        $cmd = "{$this->phpBinaryPath} {$this->file} $cmd";
        $cmd = $this->isWindows() === true
            ? $cmd = "start /b {$cmd}"
            : $cmd = "{$cmd} > /dev/null 2>&1 &";

        pclose(popen($cmd, 'r'));

        return true;
    }
public function run ( $ cmd ) { $ cmd = "{$this->phpBinaryPath} {$this->file} $cmd" ; $ cmd = $ this -> isWindows ( ) === true ? $ cmd = "start /b {$cmd}" : $ cmd = "{$cmd} > /dev/null 2>&1 &" ; pclose ( popen ( $ cmd , 'r' ) ) ; return true ; }
Running console command on background.

@param string $cmd Argument that will be passed to console application.

@return boolean
Running console command on background .