如果在运行脚本时提示spawn: command not found
,这可能是因为系统中没有安装expect工具。你需要确保已经安装了expect工具。你可以使用以下命令在Ubuntu上安装expect:
sudo apt-get update
sudo apt-get install expect
安装完成后,再次运行脚本应该就不会出现spawn: command not found
的错误了。
如果在运行脚本时提示spawn: command not found
,这可能是因为系统中没有安装expect工具。你需要确保已经安装了expect工具。你可以使用以下命令在Ubuntu上安装expect:
sudo apt-get update
sudo apt-get install expect
安装完成后,再次运行脚本应该就不会出现spawn: command not found
的错误了。