Re: Expect timeout problem after matching the prompt.
- From: Don Libes <libes@xxxxxxxx>
- Date: 04 Aug 2005 12:14:23 -0400
"mgaurav" <mgaurav@xxxxxxxxxxx> writes:
> I've started to see a weird problem, I've script of router reload...
> the script matches "Press RETURN to get started prompt" and then sends
> "\r"... and the best of my knowledge router should just rerun the
> prompt, but it does not and the expect block timeout eventually.
> However, if I put a delay or say 3 seconds before sending "\r" then it
> works fine.
>
> Any help on this is greatly appreciated.
>
> Thanks much,
> -Gaurav
This is a common problem - programs prompt before they're ready to
actually handle the response. With humans, it's not noticeable
because humans don't respond quickly enough. But since Expect needs
to be told to wait in such cases.
Don
.
- Follow-Ups:
- Re: Expect timeout problem after matching the prompt.
- From: mgaurav
- Re: Expect timeout problem after matching the prompt.
- References:
- Expect timeout problem after matching the prompt.
- From: mgaurav
- Expect timeout problem after matching the prompt.
- Prev by Date: Re: concurrend tcl evaluation
- Next by Date: Re: Tcl C pass by reference
- Previous by thread: Expect timeout problem after matching the prompt.
- Next by thread: Re: Expect timeout problem after matching the prompt.
- Index(es):
Relevant Pages
|