Re: Expect timeout problem. I needs help.




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

.