Hi t-rex,
For things under your control (calculations, reading a file), you can implement the timeout yourself (e.g. marinersk gave a basic example). For network communication, you can usually specify timeouts after which the control will return to your script, at which point you can do your own timeout checks. For external processes, it really depends on the external process. You'll have to be a lot more specific in your question, otherwise the best we can do is general suggestions. I know what I mean. Why don't you? and How do I post a question effectively?
Regards,
-- Hauke D
In reply to Re^3: Perl script to run for x hours
by haukex
in thread Perl script to run for x hours
by t-rex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |