Reputation: 23
I am writing an expect script that helps me run a program. When i set the timeout to 10 or 30, the program runs although since it's a big run installation, it doesn't get completed within 30 seconds. However when i disable timeout , i.e.
set timeout -1
the code takes indefinite amount of time to complete the first expect itself. Is there a way to add individual timeouts for each time i expect something or is there a way to disable timeouts and still have the program run seamlessly.
I can set the timeout to be 120 too, but it takes 120 seconds for the expect statements that normally can be sent within 1-2 seconds.
Upvotes: 0
Views: 47