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 reply to Re: Improving the Error Handling of my Scripts
by Anonymous Monk
in thread Improving the Error Handling of my Scripts
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |