note 49384 added to function.ssh2-exec
| From: | pguillot at paanjaru dot com | Date: | Wed, 26 Jan 2005 10:08:52 +0000 |
| Subject: | note 49384 added to function.ssh2-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84013@lists.php.net to get a copy of this message | ||
In order to get the result of the ssh2_exec ,
the blocking mode of the stream must be set
<?
$stream = ssh2_exec( $connection, 'ls' );
php stream_set_blocking( $stream, true );
print fread ( $stream, 4096 );
?>
----
Manual Page -- http://www.php.net/manual/en/function.ssh2-exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49384
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49384&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49384&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49384&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49384&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49384&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49384&report=yes
Search -- http://master.php.net/manage/user-notes.php