Re: [Expect] FW: Error in Expect "spawn id exp5 not open"
by Suresh Sundararaman other posts by this author
Aug 8 2007 1:00PM messages near this date
view in the new Beta List Site
[Expect] FW: Error in Expect "spawn id exp5 not open"
|
[Expect] Error in Expect "spawn id exp5 not open"
I just introduced some sleep in between the commands, as suggested by you, but still the sam
e problem remains.
% source GW_connect.exp
child process exited abnormallychild process exited abnormallysend: spawn id exp5 not open%
%
Still i don't have any idea why i get the same error "spawn id exp5 not open". I don't know
whether the spawn is executed correctly or not.
Date: Wed, 8 Aug 2007 12:14:17 -0700From: Stephen.Cattaneo@u4eatech.comTo: expect@listserv.a
ctivestate.comSubject: [Expect] FW: Error in Expect "spawn id exp5 not open"
Forgot to copy the list.
-s
From: Stephen Cattaneo Sent: Wednesday, August 08, 2007 12:14 PMTo: 'Suresh Sundararaman'Sub
ject: RE: [Expect] Error in Expect "spawn id exp5 not open"
This is common error with expect. Trying inserting a few sleeps:
package require Expectspawn telnet 192.168.xx.xxexpect login:
sleep 2send "root\r"expect Password:
sleep 2send "admin123\r"expect #
sleep 2send "\r"expect #send "show run\r"expect #
From: expect-bounces@[...].com [mailto:expect-bounces@[...].com] On Behalf Of Suresh Sundara
ramanSent: Wednesday, August 08, 2007 12:12 PMTo: jeffh@activestate.com; expect@listserv.act
ivestate.comSubject: [Expect] Error in Expect "spawn id exp5 not open"
Jeff / Expect Gurus, I use Windows XP and run basic expect command in the tclsh console of t
he activestate TCL version 8.4.15.0 and i get an error.I use expect to do a telnet to the ga
teway and send some commands to config it. But i get an error as "spawn id exp5 not open" wh
en the send command is used. The script is here : package require Expectspawn telnet 192.168
.xx.xxexpect 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 conso
le : % source GW_connect.expchild process exited abnormally% send: spawn id exp5 not open%%
tclsh GW_connect.expsend: spawn 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 le
t me know why this error comes and how can i get out of it and can run the script successful
ly. Eagerly waiting for the reply. Rgds,s.suresh
Want to look great? Get expert opinion on beauty and skin care. Ask the expert!
_________________________________________________________________
Sign in and get updated with all the action!
http://content.msn.co.in/Sports/FormulaOne/Default
Thread:
Stephen Cattaneo
Suresh Sundararaman
|