From 039d66a51b8668010a532750bc0515d59c182851 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 30 Dec 2004 04:24:05 +0000 Subject: [PATCH] Document ssh2_exec() and ssh2_fetch_stream() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175977 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ssh2/functions/ssh2-exec.xml | 26 +++++++++++++-- .../ssh2/functions/ssh2-fetch-stream.xml | 33 ++++++++++++++++--- 2 files changed, 52 insertions(+), 7 deletions(-) diff --git a/reference/ssh2/functions/ssh2-exec.xml b/reference/ssh2/functions/ssh2-exec.xml index a3d85fb86c..cdb976b0a3 100644 --- a/reference/ssh2/functions/ssh2-exec.xml +++ b/reference/ssh2/functions/ssh2-exec.xml @@ -1,5 +1,5 @@ - + @@ -17,11 +17,31 @@ arrayenv - + Execute a command at the remote end and allocate a channel for it. Returns a stream on success or &false; on failure. - + + + Executing a command + + +]]> + + + + + See Also: + ssh2_connect, + ssh2_shell, and + ssh2_tunnel + diff --git a/reference/ssh2/functions/ssh2-fetch-stream.xml b/reference/ssh2/functions/ssh2-fetch-stream.xml index 92c2783e3a..aeff3df765 100644 --- a/reference/ssh2/functions/ssh2-fetch-stream.xml +++ b/reference/ssh2/functions/ssh2-fetch-stream.xml @@ -1,5 +1,5 @@ - + @@ -16,9 +16,34 @@ intstreamid - - Fetch an alternate substream associated with an SSH2 channel stream. - + + Fetches an alternate substream associated with an SSH2 channel stream + identified by streamid. The SSH2 protocol + currently defines only one substream, STDERR, which has a substream ID + of SSH2_STREAM_STDERR (defined as 1). + + + + Opening a shell and retreiving the stderr stream associated with it. + + +]]> + + + + + See Also: + ssh2_shell, + ssh2_exec, and + ssh2_connect +