shell中的expect命令

原文http://www.javashuo.com/article/p-cryqcmqg-hy.html expect可以實現shell實現不了的用戶交互的需求。expect可以將交互寫在一個腳本上,完成很多自動化的動作,比如ssh、ftp登陸等,都是需要交互需求的。expect是需要安裝的,直接yum  -y install expect安裝即可。 expect的四個關鍵命令爲:spawn、ex
相關文章
相關標籤/搜索