Re: Expect scripting
- From: claird@xxxxxxxxx (Cameron Laird)
- Date: Mon, 21 May 2007 19:00:33 +0000
In article <1179633080.403856.193840@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Knilges <knilges@xxxxxxxxxxx> wrote:
.
.
.
.As written, this program *can't* "hang"; it *must*
send $line\r
Okay but as written is $line garanteed to be filled? Or is the
problem that $line is not getting anything? I can say the $
{equipid}cmdfile.txt does have a line that is a valid command to the
system it is suppose to be sent to," utl::qry.who! ". The ! is the
system's \n character.
if perhaps with timeouts intervening.
This made me look at my code again and after the password is
successful I had it waiting for a ! which was never going to appear
without a \r being sent instead it should have been waiting for COMPL.
.
.
Your construction of
$home/ke010596/$equipid\cmdfile.txt
was clever.
Yes, as your program reached me, $line is guaranteed to have
meaningful content.
My suggestion--correct the COMPL prompting, simplify your
example a bit, and post it, along with the symptoms you re-
ceive, again. OR work through the debugging techniques I
described earlier, and then tell us if any mysteries remain.
.
- References:
- Expect scripting
- From: Knilges
- Re: Expect scripting
- From: Knilges
- Re: Expect scripting
- From: Cameron Laird
- Re: Expect scripting
- From: Knilges
- Expect scripting
- Prev by Date: Re: tooltips/balloon help on menubar pulldowns
- Next by Date: Re: Upvar confusion
- Previous by thread: Re: Expect scripting
- Next by thread: TCLers Unite! COM question
- Index(es):
Relevant Pages
|