73

expect的用法和实现自动化脚本-一个想不到的未来

 6 years ago
source link: http://blog.51cto.com/zhanjun/2084411
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
expect简介expect是用来进行自动化控制和测试的工具。expect基本使用在linux运维和开发中,我们经常需要远程登录服务器进行操作,登录的过程是一个交互的过程,可能会需要输入yes/nopassword等信息。为了模拟这种输入,可以使用expect脚本。expect是由tcl语言演变而来的,所以expect脚本的运行需要tcl的支持。安装tcl和expect的步骤请自行google。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK