From: Greg Ercolano <erco@(email surpressed)>
Subject: [Q+A] How to send email only when a job fails?
   Date: Wed, 12 Oct 2005 00:00:03 -0700
Msg# 1056
View Complete Thread (1 article) | All Threads
Last Next
> I know about 'donemail' (which sends mail when the last frame finishes
> rendering), but is there a way to send mail /only/ when a job fails?

    It's true there is no 'failmail' submit option (currently),
    but maybe I should add one.

    However, you can implement this yourself by setting jobdonecommand
    to a script that checks for FAIL frames, and if it finds any, sends an email.
    (See attached)

    Regarding the attached script, this should work on both windows and unix..
    just be sure to customize the 'mailto' and 'relay' variables as needed.

    Any errors will show up in the 'jobdonecommand.log' file that appears
    in your job's logdir, which you can view in notepad or with 'more'.

Attachment: failmail.pl
Description: application/perl


Last Next