PhpBrew\Process::getOutput PHP Method

getOutput() public method

This only returns the output if you have not supplied a callback to the run() method.
public getOutput ( ) : string
return string The process output
    public function getOutput()
    {
        return $this->stdout;
    }

Usage Example

Esempio n. 1
0
 protected function detectProcessorNumberByGrep()
 {
     if (Utils::findBin('grep') && file_exists('/proc/cpuinfo')) {
         $process = new Process('grep -c ^processor /proc/cpuinfo 2>/dev/null');
         $process->run();
         $this->processorNumber = intval($process->getOutput());
         return $this->processorNumber;
     }
     return null;
 }
All Usage Examples Of PhpBrew\Process::getOutput