protected function executeRaw($command)
    {
        $pipes = null;
        $this->process = proc_open($command, $this->descriptorspec, $pipes);
        if (!is_resource($this->process)) {
            throw new Exception_SystemProcessIO('Failed to execute');
        }
        $this->debug('Execute successful');
        $this->debugStatus();

        $this->pipes['in'] = &$pipes[0];
        $this->pipes['out'] = &$pipes[1];
        $this->pipes['err'] = &$pipes[2];

        return $pipes;  // in case you need more streams redirected
    }
protected function executeRaw($command)
    {
        $pipes = null;
        $this->process = proc_open($command, $this->descriptorspec, $pipes);
        if (!is_resource($this->process)) {
            throw new Exception_SystemProcessIO('Failed to execute');
        }
        $this->debug('Execute successful');
        $this->debugStatus();

        $this->pipes['in'] = &$pipes[0];
        $this->pipes['out'] = &$pipes[1];
        $this->pipes['err'] = &$pipes[2];

        return $pipes;  // in case you need more streams redirected
    }
protected function executeRaw ( $ command ) { $ pipes = null ; $ this -> process = proc_open ( $ command , $ this -> descriptorspec , $ pipes ) ; if ( ! is_resource ( $ this -> process ) ) { throw new Exception_SystemProcessIO ( 'Failed to execute' ) ; } $ this -> debug ( 'Execute successful' ) ; $ this -> debugStatus ( ) ; $ this -> pipes [ 'in' ] = & $ pipes [ 0 ] ; $ this -> pipes [ 'out' ] = & $ pipes [ 1 ] ; $ this -> pipes [ 'err' ] = & $ pipes [ 2 ] ; return $ pipes ; // in case you need more streams redirected }
This function just executes command and returns hash of descriptors.
Hash will have keys 'in', 'out' and 'err'.

This is a handy function to override if you are piping input and
output through sockets (such as SSH connection)

@param string $command raw and proprely escaped command

@return array of pipes
This function just executes command and returns hash of descriptors . Hash will have keys in out and err .