linux下用expect登陆远程机子执行指令
操作系统
首先,要安装expect,linux expect的安装 1.安装相应的包 yum install -y tcl tclx tcl-devel 2.下载expect-5.43.tar.gz包(我这里用的这个包,大家也可以用别的) 根据参数,运行./configure ./configure --with-tcl=/usr/lib --with-tclinclud