Re: Restarting a perl script in case of failure

[email protected] (zentara)
Newsgroups perl.beginners
Message-ID <[email protected]>
On Wed, 4 Jun 2008 12:05:54 +0800, [email protected] ("Jeff Peng")
wrote:

>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.

Also look at http://perlmonks.org?node_id=603978

zentara

-- 
I'm not really a human, but I play one on earth.
http://zentara.net/CandyGram_for_Mongo.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.