Re: [Expect] Error in Expect "spawn id exp5 not open"
by Aaron P. Perez other posts by this author
Aug 10 2007 9:11AM 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"
Try this (manually, no script):
1. open TaskManager and sorting Processes alphabetically by Image
Name
2. start tclsh
a. at the tclsh prompt type "package require Expect" then
"spawn telnet" <-- note: no address
verify that telnet appears in TaskManager and that its PID matches
the return of [spawn]. Wait a while to see if the telnet session closes
by itself.
b. 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
Sundararaman
Sent: Thursday, August 09, 2007 1:41 PM
To: Perez, Aaron P.; expect@[...].com
Subject: 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=]: broken pipe".
But still i get the same error as before:
% source test.exp
send: sending "help\r" to { exp12 }
expect: does "" (spawn_id exp12) match glob pattern "login: "? no
expect: read eof
expect: 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 -0500
From: Aaron.Perez@[...].com
To: Aaron.Perez@hospira.com; suresh_serc@hotmail.com;
expect@[...].com
I remember some horrible dream about the line in Suresh's output
"write(spawn_id=]: broken pipe". I had this problem once way back when I
was trying to see if we could upgrade our 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 mentioned.
1. Replace dbghelp.dll to 6.6.7.5
2. DEP cuases conflicts, edit c:\boot.ini: change /NoExecute =
<state> to /NoExecute = AlwaysOff
3. change call of programs from [spawn cmd] then [send "program"]
to [spawn "program"]
Have you done #2, Suresh?
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
|