Re: Disabling the timeout in Expect



Mike Ayers wrote:

am writing a script which may need to sit and wait for many hours or
even
days for a response without timing out. Barring some way to disable
the timeout, what is the maximum value which can be set for the
timeout?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx


check out
http://oreilly.com/catalog/expect/chapter/ch03.html

it looks like a timeout value of -1 will tell it to wait forever

hope this helps

Thanks. That link came up in Google every time I did a search, but I
could never get it to go beyond the first page. I'm not sure why.
From a vague memory, I did try setting the timeout to -1, but it didn't
seem to work. The script still was bombing after a few seconds. For
reasons not related to this issue, I have abandoned Expect for this
project. I may come back to it just out of curiosity to find why and
how it was failing.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: k3b cant burn audio CD, got a few coasters today
    ... cdrecord: 1.1.11 ... cmd finished after 148.975s timeout 200s ... Writing time: 169.988s ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Tuning HZ for semi-realtime applications
    ... and uses its timeout parameter to try to keep the timing consistent. ... as you try to connect to systems that are a moderate round trip time away. ... SH>To unsubscribe, ...
    (freebsd-hackers)
  • Re: how to keep the internet awak
    ... so it finally was a "timeout" problem? ... I guess it might due to the suspend, the IP of my laptop has changed. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Apt-listbugs Problems
    ... David Baronis reported to have said: ... time out with a failed HTTP Get. ... And when it doesn't timeout it takes longer to get the bug list then ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: how to keep the internet awak
    ... so it finally was a "timeout" problem? ... Even ssh from the same desktop. ... I guess it might due to the suspend, the IP of my laptop has changed. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)