I'll share one kind of solution I've used in a Unix environment. Something that needs to operate once a minute is just a little too frequent to use cron for. However, that doesn't mean that you couldn't use it to check on your process every so often just to make sure it is still running and restart it if necessary. I've seen long-running scripts which either purposely terminate or re-start themselves every so often to "clear out the cruft" that can build up over a long running session. Sometimes it's due to unavoidable memory or resource leaks, but it is also just defensive programming. I've even heard of companies which rebooted their machines every day (but that was a while ago, like back in the perl4 days.)
In reply to Re: Long running Perl scripts (on purpose)
by pc88mxer
in thread Long running Perl scripts (on purpose)
by kansaschuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |