Re: Expect timeout problem. I needs help.
- From: David Bariod <dbariod@xxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 11:39:19 +0100
On Tue, 29 Nov 2005, zelzel.zsu@xxxxxxxxx wrote:
> You miss the point.
>
Actually, I think he may have it the point
> actually what expect looking for is a pattern and then take an action.
> If it can find "Password: ", it certainly can match "Password".
>
What he mention is not that your pattern does not match
"Password:" but that the pattern can also match "Password".
Depending on the scheduling your expect process may send
the data too early.
> The scripts do runs!!
> The only problem is sometimes we get a timeout problem.
> I've search in comp.lang.tcl and found that there are not a few people
> who have encounter this problem.
> But I haven't find the solution yet.
>
You should run a test campain with the "exp_internal 1" in order
to check what the expect buffer contains when the timeout condition
occurs.
If in the failed case, the expect data buffer does not contains the ending ":"
you should try what was previously suggested.
imho, it is better to have the most contraining patterns.
------------------------------
David Bariod
For email replace spam by tel
.
- References:
- Expect timeout problem. I needs help.
- From: zelzel . zsu
- Re: Expect timeout problem. I needs help.
- From: Uwe Klein
- Re: Expect timeout problem. I needs help.
- From: zelzel.zsu@xxxxxxxxx
- Expect timeout problem. I needs help.
- Prev by Date: Re: Expect timeout problem. I needs help.
- Next by Date: Re: The latest Tcl85 failed to load extensions that were linked to the tcl85 and tk85.lib
- Previous by thread: Re: Expect timeout problem. I needs help.
- Next by thread: Re: Expect timeout problem. I needs help.
- Index(es):