note 50250 added to function.ssh2-shell
| From: | suridotsuribaladotcom at osu1 dot php dot net | Date: | Wed, 23 Feb 2005 03:19:12 +0000 |
| Subject: | note 50250 added to function.ssh2-shell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85396@lists.php.net to get a copy of this message | ||
Once ssh_shell is opened, subsequent ssh2_exec using the same ssh connection handle does not work. I
am not sure if this is a bug. Here is an example:
<?php
$con = ssh_connect('host', 'port');
ssh2_auth_password( $con, 'user', 'password'");
$shell = ssh2_shell( $this->con, 'xterm')
fwrite( $shell, 'ls -la ');
// this instruction will not work
$stream = ssh_exec( $con , 'ls -la');
?>
----
Manual Page -- http://www.php.net/manual/en/function.ssh2-shell.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50250
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50250&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50250&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50250&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50250&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50250&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50250&report=yes
Search -- http://master.php.net/manage/user-notes.php