ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> expect
expect
[Expect] Error in Expect "spawn id exp5 not open"
by Suresh Sundararaman other posts by this author
Aug 8 2007 12:11PM messages near this date
view in the new Beta List Site
Re: [Expect] FW: Error in Expect "spawn id exp5 not open" | Re: [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 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
Thread:
Suresh Sundararaman
Stephen Cattaneo
Suresh Sundararaman
Suresh Sundararaman
Aaron P. Perez
Aaron P. Perez
Suresh Sundararaman
Aaron P. Perez
Suresh Sundararaman
Aaron P. Perez
Suresh Sundararaman
Larry W. Virden
Suresh Sundararaman
Larry W. Virden
Suresh Sundararaman
Larry W. Virden
Aaron P. Perez
Suresh Sundararaman
Rufus Smith

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved