Re: a unix script to send email notification when a sas batch job fails?



"Jerry" <greenmt@xxxxxxxxx> writes:

So I'm wondering if this information could be used to write a short
simple unix script which is able to do the following 2 things:
1, invoke a sas job in batch mode
2, send me an email if this sas batch job fails

sas || echo 'SAS failed' | mail -s 'SAS FAIL' 'me@somewhere' &

--
Roger Leigh
Printing on GNU/Linux? http://gutenprint.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
.