array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.ssh2-send-eof.php', 1 => 'ssh2_send_eof', ), 'up' => array ( 0 => 'ref.ssh2.php', 1 => 'SSH2 関数', ), 'prev' => array ( 0 => 'function.ssh2-scp-send.php', 1 => 'ssh2_scp_send', ), 'next' => array ( 0 => 'function.ssh2-sftp-chmod.php', 1 => 'ssh2_sftp_chmod', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/ssh2/functions/ssh2-send-eof.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ssh2 >= 1.3)
ssh2_send_eof — ストリームに EOF を送信する
ストリームに EOF を送信します。 この関数は通常、標準入力をクローズしつつ、 標準出力と標準エラー出力は活かしておく用途に使います。 たとえば、リモートのプロセスに標準入力経由でデータを送信し、 処理する際にはそれをクローズします。 そうすれば、追加のファイルを作ることなく、 処理結果を読み取ることが出来ます。
channel
SSH のストリーム。 ssh2_fetch_stream() や ssh2_connect() のような関数から取得できます。