in reply to Re: Have script send email if it dies
in thread Have script send email if it dies

As sgifford pointed out, this won't catch errors in perl; running out of memory, etc. whereas an external monitoring program will. That's probably the most robust solution.

Your logging code can then generate whatever output you want, and you'll only get an email describing the code state when the program terminates abnormally (dies, exits with an error status, etc.)

  • Comment on Re^2: Have script send email if it dies

Replies are listed 'Best First'.
Re^3: Have script send email if it dies
by Asim (Hermit) on Jul 21, 2006 at 18:52 UTC
    ...this won't catch errors in perl; running out of memory, etc. whereas an external monitoring program will. That's probably the most robust solution.

    You're correct; my focus was on solutions "within the script", actually. Thanks for the note!

    ----Asim, known to some as Woodrow.