![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^4: Auto-restarting script if it diesby mojodaddy (Pilgrim) |
on Mar 13, 2007 at 16:42 UTC ( #604607=note: print w/replies, xml ) | Need Help?? |
No, checkme.txt is never deleted; it gets overwritten each time the script starts, though, so the scenario you described never occurs.
The thing's been working great, too -- almost too well! It was pretty hilarious the first couple of times I tried to restart the script because I'd made a change to the code. It just kept popping back up again! It was like playing whack-a-mole. I've since concluded that stopping the checker first and then stopping the script is the preferred technique!
In Section
Seekers of Perl Wisdom
|
|