Timeout period
[email protected] ("Stephen Criddle") Fri, 23 Feb 2001 09:59:09 +0000
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <[email protected]> |
Is there a way in MacPerl to set a timeout period on a script? So that if (for instance), the script hasn't finished within 30 seconds, a timer kicks in to jump to an end routine and quit the script? I need this for a script which accesses another machine. If the network connection is slow, or the remote server goes down after the connection has been established, the script waits indefinitely and has to be manually stopped. I'd like to do this automatically. Steve Criddle This email and the files sent with it are confidential and for the use of the intended recipient(s) only. If you are not the intended recipient(s), please note that any use, distribution or copying of this communication or the information in it, is strictly prohibited. If you have received this communication in error, please notify the sender or forward this message to [email protected] and then destroy the email and any copies of it. This communication is from Saga Holidays Ltd whose registered office is The Saga Building, Enbrook Park, Folkestone, UK CT20 3SE. Registered number 02174052.