Linux expect 介紹

expect 是用來自動化填入指令視窗內容的工具,在指令視窗中遇到需要手動輸入內容時非常好用。

安裝 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

留言