ssh2_shell
ssh2_shell — 対話式のシェルを要求する
説明
resource ssh2_shell ( resource session [, string term_type [, array env [, int width [, int height [, int width_height_type]]]]] )リモートエンド上のシェルをオープンし、そのためのストリームを割り当てます。 term_type は対象システムの /etc/termcap に記載されたエントリの一つに相当し、 デフォルトは vanilla です。 env には、 対象の環境に設定する名前/値の組の連想配列を渡すことができます。
width や height は、シェルプロセスに対して割り当てられた仮想端末の幅と高さを定義します。 width_height_type は SSH2_TERM_UNIT_CHARS もしくは SSH2_TERM_UNIT_PIXELS のいずれかです。
例 2220. コマンドを実行する
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$stream = ssh2_shell($connection, 'vt102', null, 80, 24, SSH2_TERM_UNIT_CHARS);
?>
ssh2_exec(), ssh2_tunnel(), ssh2_fetch_stream() も参照ください。
Weblioに収録されているすべての辞書からssh2_shellを検索する場合は、下記のリンクをクリックしてください。

- ssh2_shellのページへのリンク