« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for somepath (0.003 sec.)
Expect の使用例 | PHP 8.3 9414
Expect の使用例 例1 Expect の使用例 この例ではリモートホストに SSH 経由で接続し、接続先の稼働時間を表示します。 <?php ini_set ( "expect.loguser" , "Off" ); $stream = fopen ( "expect://ssh root@remotehost uptime" , "r" ); $cases = array ( ar ... ak; case SHELL : // アップデートの実行 if ( strstr ( $uname , "x86_64" )) { fwrite ( $stream , "rpm -Uhv http://mirrorsite/somepath/some_64bit.rpm\n" ); } else { fwrite ( $stream , "rpm -Uhv http://mirrorsite/somepath/some_32bit.rpm\n" ); } fwrite ( $str ...
https://man.mtool.work/php/8.3/expect.examples-usage.html
PREV 1 NEXT