一、安装
1、apt / yum install -y expect
2、手动安装(Mac系统):
下载tcl:http://www.tcl.tk/software/tcltk/downloadnow84.tml
下载:expect:http://www.linuxfromscratch.org/blfs/view/svn/general/expect.html
分别执行:./configure & make & make install
3、获取expect的路径:
Linux:which expect
结果:/usr/bin/expect
Mac:where expect
结果:/usr/bin/expect
4、