I've modified the end of backup_exit_notify to only notify me of status
other then zero, but I don't believe it is working. Can anyone see
anything with my modifications that would have the script not executing
correctly?
As it is now, other then zero, I am not notified. Before sending this
email, I changed mailx to /bin/mailx.
Would this change anything?
#
# might want to mail this info to someone
#
# NTFLOGS mail to blah AT blah DOT com
if [ "$2" = "job" ]
then
cat $OUTF |mailx -s "NetBackup exit of $5 for $2" blah AT blah DOT com
fi
# All Jobs other then Status of Zero, send to unix team.
if [ "$5" -ne 0 ]
then
cat $OUTF | mailx -s "NetBackup exit of $5 for $2" me AT whatever DOT com
else
fi
exit 0
--
Jason G Helfman, Ticketmaster
8800 W. Sunset Blvd.
West Hollywood, CA 90069
213/739-5174 Direct
310/345-1554 Cell
310/360-3300 Main
jason.helfman AT ticketmaster DOT com
GnuPG Fingerprint: A349 3CAA 5085 DC6E C485 7356 13C3 5772 F865 C926
|