73 $descriptorspec = array(
74 0 => array(
"pipe",
"r"),
75 1 => array(
"pipe",
"w"),
76 2 => array(
"pipe",
"w")
80 $process = proc_open(
'/bin/bash', $descriptorspec, $pipes);
82 if (is_resource($process))
84 fwrite($pipes[0], $command);
87 $this->resOutput = stream_get_contents($pipes[1]);
90 $this->resError = stream_get_contents($pipes[2]);
93 $retVal = proc_close($process);
96 return $retVal == static::SUCCESS_RESULT;