The Linux expect command takes script writing to an entirely new level. Instead of automating processes, it automates running and responding to other scripts. In other words, you can write a script ...
Linuxサーバーにssh接続し、aptコマンドを実行してパッケージを更新してから、ログアウトを実行する それではシェルスクリプトと流れを紹介しよう。 9~12行目は通常のログオン処理だが、最初に変数でユーザー名やパスワード名を用いて記述を省略している。
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する