Jeff / Expect Gurus,
I use Windows XP and run basic expect command in the tclsh console of the activestate TCL ve
rsion 8.4.15.0 and i get an error.
I use expect to do a telnet to the gateway and send some commands to config it. But i get an
error as "spawn id exp5 not open" when the send command is used.
The script is here :
package require Expect
spawn telnet 192.168.xx.xx
expect login:
send "root\r"
expect Password:
send "admin123\r"
expect #
send "\r"
expect #
send "show run\r"
expect #
I get the following error when i run the above file in tclsh console :
% source GW_connect.exp
child process exited abnormally% send: spawn id exp5 not open%% tclsh GW_connect.expsend: sp
awn id exp4 not open while executing"send "root\r"" (file "GW_connect.exp" line 4)
I tried googling but could not find any solution.Can anyone just let me know why this error
comes and how can i get out of it and can run the script successfully.
Eagerly waiting for the reply.
Rgds,
s.suresh
_________________________________________________________________
Want to look great? Get expert opinion on beauty and skin care.
http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm