in reply to Improving the Error Handling of my Scripts

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.

  • Comment on Re: Improving the Error Handling of my Scripts