I have a perl daemon that in principle (unless stopped or restarted) will run forever. . . All of our production scripts restart themselves after some time is passed, ( i.e. 4-hours, 24-hours, etc. ). If you have 'cron' you might want to restart the process periodically. If you can't use 'cron' then the script can test on how much time has passed and use 'system' to restart itself and then exit.
Your script will be happy with a fresh start.
"Well done is better than well said." - Benjamin Franklin
| [reply] |
| [reply] [d/l] [select] |
JavaFan,
You are correct, but we do use 'system', however, the command that we issue has a " \&" at the end, so in our Unix environment, we're okay. I just checked the code on one of the scripts, and realized that I forgot how it was implemented. 'exec' would have been better.
Thank you
"Well done is better than well said." - Benjamin Franklin
| [reply] |