标签:expectbaocuo
expect脚本执行后报错;
如下内容
autosu.sh: line 3: spawn: command not found
couldn‘t read file "password:": no such file or directory
autosu.sh: line 5: send: command not found
autosu.sh: line 6: interact: command not found
说明执行方式不正确,因为expect用的不是bash所以会报错。执行的时候直接./autosu.sh就可以了
expect报错: spawn: command not found
标签:expectbaocuo
原文地址:http://2367685.blog.51cto.com/2357685/1958184