|
楼主 |
发表于 2005-3-22 23:58:49
|
显示全部楼层
Post by tonyutada
我安装对应的两个expect rpm以后
执行跟你linuxjerry的脚本
还是有问题,问题如下:
[root@localhost bin]# sh connect-root.sh
connect-root.sh: line 5: spawn: command not found
couldn't read file "lease input your user name:": no such file or directory
connect-root.sh: line 9: send: command not found
couldn't read file "lease input your password:": no such file or directory
connect-root.sh: line 13: send: command not found
couldn't read file "Use DHCP,1-Use,0-UnUse(Default: 0):": no such file or directory
connect-root.sh: line 17: send: command not found
couldn't read file "Use default auth parameter,0-Use 1-UnUse(Default: 0):": no such file or directory
connect-root.sh: line 21: send: command not found
couldn't read file "LogOff:": no such file or directory
是不是安装expect包以后要重新启动阿?
这个脚本设为可执行就不用加sh开头了。
从显示的错误看来,expect没有工作呢。 |
|