Re: [Expect] Error in Expect "spawn id exp5 not open"
by Suresh Sundararaman other posts by this author
Aug 10 2007 10:03AM 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"
Hi Aaron,
Here is what i observed.
Step 1 is done.Executed Step-2a and in less than a second, the Telnet process closes by itse
lf in the TaskManager window. The spawn id is returned in the tclsh console.Executed step-2b
in the tclsh console and nothing came.
Output is :
-----------
% package require Expect5.43% spawn telnet2764% expect "Welcome to Microsoft telnet Client"%
spawn telnet464
The same things was repeated with exp_internal turned to 1.
I could get the same error as before
Output is :
-------------
% package require Expect5.43% exp_internal 1% spawn telnet3664% expect "Welcome to Microsoft
telnet Client"
expect: does "" (spawn_id exp6) match glob pattern "Welcome to Microsoft telnetClient"? noex
pect: read eofexpect: set expect_out(spawn_id) "exp6"expect: set expect_out(buffer) ""%
The PID remains at step-2a but the step-2b returns error. I don't understand how the telnet
process kills by it automatically.
Regards,
s.suresh
Subject: RE: [Expect] Error in Expect "spawn id exp5 not open"Date: Fri, 10 Aug 2007 11:11:1
9 -0500From: Aaron.Perez@hospira.comTo: suresh_serc@hotmail.com; expect@[...].com
Try this (manually, no script):
open TaskManager and sorting Processes alphabetically by Image Name
start tclsh
at the tclsh prompt type �package require Expect� then �spawn telnet� � note: no a
ddress
verify that telnet appears in TaskManager and that its PID matches the return of [spaw
n]. Wait a while to see if the telnet session closes by itself.
at the tclsh prompt type �expect �Welcome to Microsoft Telnet Client�
this should return something like:
% package require Expect
5.43
% spawn telnet
4312
% expect "Welcome to Microsoft Telnet Client"
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet> %
What does your system do? Do you get (and keep) the Windoze PID at step 2a? Does 2b timeout,
error, or return correctly?
If it fails try it again with exp_internal turned on.
-- Aaron
From: expect-bounces@[...].com [mailto:expect-bounces@[...].com] On Behalf Of Suresh Sundara
ramanSent: Thursday, August 09, 2007 1:41 PMTo: Perez, Aaron P.; expect@listserv.activestate
.comSubject: Re: [Expect] Error in Expect "spawn id exp5 not open"
After doing the step 2 what you have mentioned, i don't get this error "write(spawn_id=]: br
oken pipe�. But still i get the same error as before: % source test.expsend: sending "help
\r" to { exp12 }expect: does "" (spawn_id exp12) match glob pattern "login: "? noexpect: rea
d eofexpect: set expect_out(spawn_id) "exp12"expect: set expect_out(buffer) ""send: sending
"root\r" to { exp12 send: spawn id exp12 not open%I really don't know what to do now ?
Subject: RE: [Expect] Error in Expect "spawn id exp5 not open"Date: Thu, 9 Aug 2007 14:47:52
-0500From: Aaron.Perez@hospira.comTo: Aaron.Perez@hospira.com; suresh_serc@hotmail.com; exp
ect@[...].com
I remember some horrible dream about the line in Suresh�s output �write(spawn_id=]: brok
en pipe�. I had this problem once way back when I was trying to see if we could upgrade ou
r Tcl/Expect versions from Expect for NT to the most current stable releases.
There were three things that I had to do to get mine to work, 2 of which have already been m
entioned.
Replace dbghelp.dll to 6.6.7.5
DEP cuases conflicts, edit c:\boot.ini: change /NoExecute = <state> to /NoExecute = AlwaysOf
f
change call of programs from [spawn cmd] then [send �program�] to [spawn �program�]
Have you done #2, Suresh?
_________________________________________________________________
Sign in and get updated with all the action!
http://content.msn.co.in/Sports/FormulaOne/Default
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
|