Timeout on scriptby hotshot (Prior)
|on Jan 26, 2004 at 17:11 UTC ( #324176=perlquestion: print w/replies, xml )||Need Help??|
hotshot has asked for the wisdom of the Perl Monks concerning the following question:
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?
Back to Seekers of Perl Wisdom