Re: Expect scripting



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.
.



Relevant Pages

  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: Am I the only one...
    ... I'm waiting until I can play it - or at least, see it running - before I think ... game (okay, it's third person, and okay, it's tactical rather than action based ...
    (uk.games.video.xbox)
  • Re: Leopard day-to-day software compatibility
    ... Okay, okay I found at least two, but no sounds about Skype, Adobe Reader 8 etc inside them. ... And then, I am also waiting for upgrade my Macbook to Leopard, at least when Super Duper and Skype will be ready to go to Leopard. ...
    (comp.sys.mac.system)
  • Re: From Another List
    ... Your idiocy knows no bounds. ... Okay I will explain it to you. ... Still waiting for the explanation of how the SR-71 (which both the ...
    (rec.woodworking)
  • Ready to buy some games!
    ... Okay, after 6 months of waiting for our Efficiency Experts to let me ...
    (rec.games.video.arcade.collecting)