expect 是用來自動化填入指令視窗內容的工具,在指令視窗中遇到需要手動輸入內容時非常好用。
安裝 expect
使用 whereis 查看 expect 位置:
沒有安裝 expect 的範例輸出:
正常會顯示安裝路徑,例如 /usr/bin/expect
範例輸出:
文章撰寫中...請稍後...
參考資料:
expect(1) - Linux man page
安裝 expect
sudo apt install expect
使用 whereis 查看 expect 位置:
whereis expect
沒有安裝 expect 的範例輸出:
whereis expect
expect:
正常會顯示安裝路徑,例如 /usr/bin/expect
範例輸出:
whereis expect
expect: /usr/bin/expect /usr/share/man/man1/expect.1.gz
文章撰寫中...請稍後...
參考資料:
expect(1) - Linux man page
留言
張貼留言
如果有任何問題、建議、想說的話或文章題目推薦,都歡迎留言或來信: a@ruyut.com