ssh2_exec リモートサーバー上でコマンドを実行する &reftitle.description; resourcefalsessh2_exec resourcesession stringcommand stringpty arrayenv intwidth80 intheight25 intwidth_height_typeSSH2_TERM_UNIT_CHARS コマンドをリモートエンドで実行し、チャネルを割り当てます。 &reftitle.parameters; session ssh2_connect のコールによって取得した SSH 接続リンク ID。 command pty env env には、 対象となる環境で設定する名前/値のペアを連想配列で渡します。 width 仮想端末の幅。 height 仮想端末の高さ。 width_height_type width_height_type は、 SSH2_TERM_UNIT_CHARS あるいは SSH2_TERM_UNIT_PIXELS のいずれかです。 &reftitle.returnvalues; 成功時にストリームを返し、&return.falseforfailure;。 &reftitle.examples; コマンドの実行 ]]> &reftitle.seealso; ssh2_connect ssh2_shell ssh2_tunnel