[Expect] why does this not work in windows?
by F W Wolf other posts by this author
Jun 8 2007 3:47AM messages near this date
view in the new Beta List Site
Re: [Expect] Unable to use expect, spawn, send, etc commands
|
Re: [Expect] why does this not work in windows?
Hello,
I just made my first steps with Tcl and Expect.
I want to configure some switches with Tcl.
So I tried my first script:
---------------------------------
# exec tclsh "$0" ${1+"$@"}
package require Expect
set host_ip "10.2.30.91"
set user root
exp_log_file test_log.txt
exp_spawn telnet $host_ip
exp_sleep 5
expect "login:"
exp_send "$user\r"
expect "Password:"
exp_send "vertex25\r"
expect "> "
exp_send "ena\r"
expect "Janus#"
exp_send "exit\r"
expect eof
------------------------------------
with LINUX all is OK, it works. But with Windows not. I see the error message:
span id exp2 not open while executing "exp_send "$user\r"
Why? What is the reason?
The windows is WindowsXP, TCL is the this installation: ActiveTcl8.4.14.0.272572-win32-ix86-
threaded.exe
The bug with the wrong dbghelp.dll is fixed :-)
Best regards,
F.W.Wolf
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
_______________________________________________
Expect mailing list
Expect@[...].com
http://listserv.ActiveState.com/mailman/listinfo/expect
Thread:
F W Wolf
Jeff Hobbs
holdschi
F W Wolf
|