hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys!
I have an external script that I run from my Perl script using system(). I need a timeout mechanism, that will wait a given time on the execution of the script. If the script isn't finished (returned to my perl script) until this timeout passes, the perl script will be back in control and continue from the SAME SPOT (display warning to screen and continue).
In any case failure/success in running the script in the given timeout, I want to continue from the same spot.
Can anyone help me with that one?
Thanks
I have an external script that I run from my Perl script using system(). I need a timeout mechanism, that will wait a given time on the execution of the script. If the script isn't finished (returned to my perl script) until this timeout passes, the perl script will be back in control and continue from the SAME SPOT (display warning to screen and continue).
In any case failure/success in running the script in the given timeout, I want to continue from the same spot.
Can anyone help me with that one?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Timeout on script
by Abigail-II (Bishop) on Jan 26, 2004 at 17:30 UTC | |
by hotshot (Prior) on Jan 27, 2004 at 06:39 UTC | |
by Abigail-II (Bishop) on Jan 27, 2004 at 08:42 UTC | |
by hotshot (Prior) on Jan 27, 2004 at 09:28 UTC | |
Re: Timeout on script
by Abigail-II (Bishop) on Jan 26, 2004 at 17:18 UTC | |
Re: Timeout on script
by duff (Parson) on Jan 26, 2004 at 17:26 UTC | |
by BrowserUk (Patriarch) on Jan 26, 2004 at 17:37 UTC | |
Re: Timeout on script
by Coruscate (Sexton) on Jan 26, 2004 at 20:24 UTC | |
by ysth (Canon) on Jan 26, 2004 at 22:29 UTC | |
Re: Timeout on script
by Roy Johnson (Monsignor) on Jan 26, 2004 at 17:25 UTC | |
Re: Timeout on script
by eyepopslikeamosquito (Archbishop) on Feb 03, 2004 at 06:05 UTC | |
by Anonymous Monk on Jul 09, 2013 at 11:39 UTC |
Back to
Seekers of Perl Wisdom