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
Re: [Expect] Error in Expect "spawn id exp5 not open"
by Larry W. Virden other posts by this author
Aug 9 2007 4:05AM messages near this date
view in the new Beta List Site
Re: [Expect] Error in Expect "spawn id exp5 not open" | Re: [Expect] Error in Expect "spawn id exp5 not open"
Hmm - either this isn't all the output, or not all the actions are being
reported, or something is wrong with your script.
I don't see any indication that another program was started. However,
notice that what you are told in the send line is that you are sending
the string
 
i get <> 
 
off to an expect handle. What you get in response is nothing. The null
response ("") doesn't match your login, your script then reads the End
of file (eof), and
nothing else is going.
 
So, either the telnet isn't found, or isn't starting. Because the expect
is not finding anything for you to work against.
 

________________________________

From: Suresh Sundararaman

 
I used the command "exp_internal 1" and "expect_out(buffer)" and could
get some output. But i am unable to visualize, where i am going wrong.
If you people can guide me thru this, it will be really great, as i am
new to this error.
 
Here is the error which i get if i run with the above commands.
 
%
% source GW_connect.exp
send: sending "i get <> " to { exp5 }
expect: does "" (spawn_id exp5) match glob pattern "login:"? no
expect: read eof
expect: set expect_out(spawn_id) "exp5"
expect: set expect_out(buffer) ""
exit out of expect
send: sending "root" to { exp5 send: spawn id exp5 not open%
%
 
Rgds,
s.suresh
408-991-5518





	 

 

-- 

<URL: http://wiki.tcl.tk/ > 

Even if explicitly stated to the contrary, nothing in this posting

should be construed as representing my employer's opinions.

<URL: mailto:lvirden@[...].com >  <URL: http://www.purl.org/NET/lvirden/
> 

 

 
 
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