Re: [Expect] Error in Expect "spawn id exp5 not open"
by Suresh Sundararaman other posts by this author
Aug 9 2007 12:14PM 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"
This is what i get when i execute them in my tclsh prompt.
% package require Expect5.43% spawn telnet964% expect 964
expect: does "" (spawn_id exp9) match glob pattern "964"? no
expect: read eofexpect: set expect_out(spawn_id) "exp9"expect: set expect_out(buffer) ""%% p
uts $spawn_idexp9% expect exp9%
Date: Thu, 9 Aug 2007 15:05:21 -0400From: lvirden@cas.orgTo: expect@listserv.activestate.com
Subject: Re: [Expect] Error in Expect "spawn id exp5 not open"
I think we are making progress. Certainly attention can be better focused at this time. Let'
s see, what else do we need to know...
We know the OS and the version of tcl. Unfortunately, I don't have this combination, so I ca
n test things here to see if I see anything different.
Hey - what do you get when in the tcl console you type:
% package require Expect
5.43.0
% spawn telnet
23240
% expect 23240
telnet> %
Of course, that 23240 will be some other value for you, and the output from the package requ
ire Expect might be different as well. Tell us what you get.
This will tell us at least that expect is starting the application properly.
--
<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/ >
From: Suresh Sundararaman When i run "telnet" from the command prompt and "telnet" from the
tcl prompt, i get MS's telnet.Now from the tcl prompt when i use "spawn telnet 192.168.x.x"
i get error the following error:expect: does "" (spawn_id exp5) match glob pattern "login: "
? noexpect: read eofexpect: set expect_out(spawn_id) "exp5"I really feel that the spawn comm
and itself is not working in my windows environment. Can anyone tell me what i need to do to
make it work in my windows pc. I even tried using spawn ping 192.168.x.y and spawn telnet
192.168.x.y where i used a different device and i face the same issue and error. The version
of the windows PC which i use is as follows:System : Microsoft Windows XP Professional, Ver
sion 2002, Service Pack 2 If anyone can help me out in solving this error, i will be very ve
ry happy, as it is giving me a real hard and tough time. I am using the new "dbghelp.dll" fi
le of version 6.6.7.5.
_________________________________________________________________
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
|