library/Garp/Shell/Command/Abstract.php
protected function _executeStringRemotely($commandString, Garp_Shell_RemoteSession $session) {
        if (!($stream = ssh2_exec($session->getSshSession(), $commandString))) {
            return false;
        }
    
        stream_set_blocking($stream, true);
        $content = stream_get_contents($stream);        
        $this->_bubbleSshErrors($stream, $commandString);
        fclose($stream);

        return $content;
    }
protected function _executeStringRemotely($commandString, Garp_Shell_RemoteSession $session) {
        if (!($stream = ssh2_exec($session->getSshSession(), $commandString))) {
            return false;
        }
    
        stream_set_blocking($stream, true);
        $content = stream_get_contents($stream);        
        $this->_bubbleSshErrors($stream, $commandString);
        fclose($stream);

        return $content;
    }
protected function _executeStringRemotely ( $ commandString , Garp_Shell_RemoteSession $ session ) { if ( ! ( $ stream = ssh2_exec ( $ session -> getSshSession ( ) , $ commandString ) ) ) { return false ; } stream_set_blocking ( $ stream , true ) ; $ content = stream_get_contents ( $ stream ) ; $ this -> _bubbleSshErrors ( $ stream , $ commandString ) ; fclose ( $ stream ) ; return $ content ; }
Executes provided command string through an SSH session in a remote terminal.
@return String The command's output
Executes provided command string through an SSH session in a remote terminal .