若没有安装,需要 sudo apt-get|yum install expect
expect类似bash,一般用于需要sudo权限时自动输入账户密码,常用选项和说明如图(图中expact写错了,应该是expect):

测试:


非常的简单
若没有安装,需要 sudo apt-get|yum install expect
expect类似bash,一般用于需要sudo权限时自动输入账户密码,常用选项和说明如图(图中expact写错了,应该是expect):
测试:
非常的简单
本文标题:expact常用说明,完成自动交互
本文链接:https://www.haomeiwen.com/subject/tmmfhrtx.html
网友评论