一、运行sh test.sh报错

test.sh:行7: spawn: 未找到命令
test.sh:行10: send: 未找到命令
test.sh:行11: interact: 未找到命令
原因:

第一,你不该用sh,因为这是expect脚本,直接执行./e.sh或expect ./e.sh
第二,确认expect是在/usr/local/bin下

参考:https://zhidao.baidu.com/question/752884072154466924.html

 

相关文章:

  • 2021-11-30
  • 2021-06-05
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-02-07
  • 2021-07-12
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2022-01-18
  • 2021-09-05
  • 2021-12-10
  • 2022-12-23
  • 2021-11-19
相关资源
相似解决方案