Re: Restarting a perl script in case of failure
[email protected] ("Jeff Peng")
| Newsgroups | perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 4, 2008 at 4:15 AM, Steve Bielen <[email protected]> wrote: > is there a way to restart the script when it encounters an error ? > Forking a child in the script, child will do the actual work, parent do nothing but monitor child's status. When child meet an IOError, it could die, and parent will get a SIGCHLD signal, then parent could re-fork a new child to be continued. -- Jeff Peng - [email protected] Professional Squid supports in China http://www.ChinaSquid.com/