spawn: command not found

start.sh: line 3: spawn: command not found
": no such file or directory:
start.sh: line 5: send: command not found
start.sh: line 6: interact: command not found

解决的办法如下:

含有expect的脚本不能用bash执行,bash无法解析。添加可执行权限后,直接./your_script即可。

你可能感兴趣的:(python,bash)