expect报错: spawn: command not found

expect脚本执行后报错;bash

以下内容ide

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
spa


说明执行方式不正确,由于expect用的不是bash因此会报错。执行的时候直接./autosu.sh就能够了orm

相关文章
相关标签/搜索