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就可以了