Expect可以完成所有看起来无法实现自动化的工作:在脚本中使用密码条目、登录到远程用户的会话和返回对他或者她的控制,以及更多的工作。
Expect makes all sorts of automations practical that otherwise seem impossible: scripting of password entry, logging in a remote user's session and returning control to him or her, and much more.
他引用了一个从开始到结束只用了六周的离婚和解案来说明他对这一协调方案的看好:整个过程非常文明友好,当细节商量完了的时候,他的当事人宣称她要给她“即将成为前夫”丈夫煮一顿晚餐,因为他看起来消瘦了许多。
The process was so civilised that when the details were finalised, his client announced that she was cooking supper for her soon-to-be-ex-husband that weekend, as he was looking thin.
应用推荐