Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Improving the Error Handling of my Scriptsby Anonymous Monk |
on Mar 10, 2010 at 19:39 UTC ( [id://827877]=note: print w/replies, xml ) | Need Help?? |
Perhaps I'm missing something, but cron will mail a program's output to the owner's account. Just make sure you have the job owner's account correctly configured or in the 'aliases' file. Perhaps not a glamorous perl solution, but it keeps the arcane out of your scripts. If your script's STDOUT is already being mailed to a user other than you, have the cron job redirect it's STDERR to your mail.
In Section
Seekers of Perl Wisdom
|
|