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 exp7 not open"
by Suresh Sundararaman other posts by this author
Aug 10 2007 12:09PM messages near this date
view in the new Beta List Site
Re: [Expect] [Activetcl] How to pass parameters to a file "test.tcl" fromcommand line | Re: [Expect] Error in Expect "spawn id exp7 not open"
Hi all,
 
Thanks to Jeff, Aaron, Stephen, Rufus and Virden for all the help extended to me for this pr
oblem. 
I still could not get a solution for my issue, but i think there might be a problem in my PC
, as it works for 
all with the same config as mine.
 
Rgds,
s.suresh
>  Date: Fri, 10 Aug 2007 11:11:00 -0700> From: jeffh@[...].com> To: suresh_serc@[...].com> S
ubject: Re: [Expect] Error in Expect "spawn id exp7 not open">  > I simply can't reproduce th
e problem, and others have noted equal >  success with the same setup. I am using XP SP2. I c
an see that the >  file version of my dbghelp.dll is actually "5.1.2600.2180 > (xpsp_sp2_rtm.
040803-2158)", being the only difference, although that >  version is indicated in a whole ch
ain of dlls when I view it with the >  dependency walker.> > I can't otherwise explain the od
dity, except that it is likely some >  low-level difference in Microsoft libraries. You are w
elcome to have >  the source code and try and figure out more in depth why it aborts > abrupt
ly on your system. You can find the source code at:>  > ftp://tcl.activestate.com/pub/incomin
g/expect-src.zip>  > Regards,> > Jeff> > P.S. - A run on my system:> > C:\tmp>tclsh> % packag
e require Expect>  5.43> % exp_internal 1> % set exp::winnt_debug 1> 1> % spawn telnet2> 3388
>  % expect telnet2>> > expect: does "" (spawn_id exp4) match glob pattern "telnet2>"? no> te
lnet2> > expect: does "telnet2> " (spawn_id exp4) match glob pattern "telnet2>"? yes> expect:
 set expect_out(0,string) "telnet2> "> expect: set expect_out(spawn_id) "exp4"> expect: set e
xpect_out(buffer) "telnet2> "> % send quit\r> send: sending "quit\r" to { exp4 }> % spawn tel
net>  2140> % expect "Welcome to Microsoft Telnet Client"> > expect: does "" (spawn_id exp5) 
match glob pattern "Welcome to Microsoft >  Telnet> Client"? no> Welcome to Microsoft Telnet 
Client>  > Escape Character is 'CTRL+]'> > Microsoft Telnet>> expect: does "Welcome to Micros
oft Telnet Client \n\nEscape Character is >  'CTRL+]> '\n\nMicrosoft Telnet> " (spawn_id exp5
) match glob pattern "Welcome to >  Microsof> t Telnet Client"? yes> expect: set expect_out(0
,string) "Welcome to Microsoft Telnet Client">  expect: set expect_out(spawn_id) "exp5"> expe
ct: set expect_out(buffer) "Welcome to Microsoft Telnet Client">  % send quit\r> send: sendin
g "quit\r" to { exp5 }>  %> > Suresh Sundararaman wrote:> > Hello Jeff,> > > > I turned off t
he Symantec Client Firewall and the Symantec services and >  > tried again. Still i am not su
ccessful.>  > The output is :> > --------------> > % package require Expect> > 5.43> > %> > %
 spawn telnet2>  > 3724> > % expect "Welcome to Telnet Client"> > expect: does "" (spawn_id e
xp7) match glob pattern "Welcome to Telnet >  > Client"? n> > o> > expect: read eof> > expect
: set expect_out(spawn_id) "exp7">  > expect: set expect_out(buffer) ""> > % pwd> > C:/Tcl/bi
n>  > > > I am unable to understand why i get such errors.> > > > Regards,> > s.suresh> 
_________________________________________________________________
The idiot box is no longer passe!
http://content.msn.co.in/Entertainment/TV/Default.aspx
Thread:
Suresh Sundararaman
David Gravereaux

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved