Ron Santos wrote:
[posted to rush.general]
Would it be possible to also add the 'rush -lfi' output in the done/dump
mails?
Hi Ron,
I'll add that to the wish list.
Meanwhile, you can get this behavior by submitting your job with
a 'jobdonecommand' that invokes a script that sends more customized
emails.. for instance, in Unix, you could just use:
UNIX:
#!/bin/csh -f
#
# Use this script as your 'jobdonecommand'
#
set mailto = 'you@(email surpressed)'
( rush -lfi; rush -lf; rush -ljf ) |& Mail $mailto -s 'Finished job $RUSH_JOBID'
Or a similar script can be written in perl that should work on all
platforms, including Windows.
(The following was hand modified without testing; there may be typos)
#!/usr/bin/perl -w
#
# Use this script as your 'jobdonecommand'
#
use strict;
use Net::SMTP;
my $mailto = 'you@(email surpressed)'; # CHANGE THIS
my $relay = "relay.domain.com"; # CHANGE THIS
my $smtp = Net::SMTP->new($relay);
if ( ! defined($smtp) )
{
# ERROR OCCURRED -- TRY AGAIN W/DEBUG ENABLED
$smtp = Net::SMTP->new($relay, Debug => 1);
if ( !defined($smtp) )
{ print "ERROR: Could not connect to $relay (see above)\n"; exit(1); }
}
my ($errs, $expect) = (0,0);
$expect++; $errs += $smtp->mail($mailto);
$expect++; $errs += $smtp->to($mailto);
$expect++; $errs += $smtp->data();
$expect++; $errs += $smtp->datasend("From: \"*** Rush ***\"<$mailto>\n");
$expect++; $errs += $smtp->datasend("To: $mailto\n");
$expect++; $errs += $smtp->datasend("Subject: Finished job $ENV{RUSH_JOBID}\n");
$expect++; $errs += $smtp->datasend("\n");
$expect++; $errs += $smtp->datasend("-- Frame Info:\n");
$expect++; $errs += $smtp->datasend(`rush -lfi`);
$expect++; $errs += $smtp->datasend("-- Frame List:\n");
$expect++; $errs += $smtp->datasend(`rush -lf`);
$expect++; $errs += $smtp->datasend("-- Job Full:\n");
$expect++; $errs += $smtp->datasend(`rush -ljf`);
$expect++; $errs += $smtp->dataend();
$expect++; $errs += $smtp->quit;
if ( $expect != $errs )
{ print "SMTP ERROR=".$smtp->cgi_error()."\n"; }
--
Greg Ercolano, erco@(email surpressed)
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Cel: (Tel# suppressed)
Fax: (Tel# suppressed)
|