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即可。
文章讲述了在使用bash执行包含expect脚本时遇到commandnotfound错误,解决方案是bash无法解析expect,需将其转换为可执行文件并直接运行./your_script。
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即可。

被折叠的 条评论
为什么被折叠?