以下是我的TCL /期待脚本:
package require Expect
spawn telnet 2.2.2.10
expect "*ogin:"
send "admin\r"
expect "*word:"
send "test\r"
expect "*>"
send "enable\r"
expect "*#"
上述脚本中的“Windows XP”机器运行。 但是,当我运行的“Windows 7”在同一个脚本,它抛出以下错误:
C:\Users\test\Desktop>tclsh 3_AP_collect_sign.tcl
The system cannot find the file specified.
while executing
"spawn telnet 2.2.2.10"
(file "3_AP_collect_sign.tcl" line 6)
C:\Users\Symbol\Desktop>
请帮我在“Windows 7的”机上运行此脚本。 我应该添加任何东西在Windows 7上运行? 提前致谢。
谢谢,
巴鲁P.