tcl expect 在win7 中的问题,The system cannot find the file specified.高手看一下
一个简单的expect脚本,在XP和linux 下都能运行,但是放到Win7 下面老是报错,而且就是spawn telnet 会出错, spawn FTP 没有问题,请高手提供一个解决方案。 本人已经尝试在cygwin运行,会报同样的错。BTW, 我win7 telnet 服务已经打开。 期待您的答复。谢谢。
package require Expect
set ip
set timeout 10
spawn telnet $ip
puts $spawn_id
expect "ogin:"
send "dna\r"
expect "assword:"
send "123456 \r"
expect "#"
send "ls\r"
expect "#"
exp_close -i $spawn_id
系统提示::The system cannot find the file specified.
X:\automation\tcl\lian>tclsh86 exptel.tcl 10.220.40.63
The system cannot find the file specified.
while executing
"spawn telnet $ip"
(file "exptel.tcl" line 4)
页:
[1]