Originally posted by: MarkTaylor
Firstly, is sendmail set up correctly on your host ? (or postfix, exim or some other smtp mta application)
To test this do:
echo test | mail -s "test"
your.email.address@your-host.whatever Then, if it is, you can just add a "mail" command similar to above to the end of your backup script.
something like this if you are using tsm (just an example)
#!/bin/ksh
-
.. my backup script ..
dsmc incr -subdir=y /somedir ## blah blah flags blah blah
rc=$?
cat /somedir/backup.log | mail -s "Backup: blah blah rc=$rc" |
your.email.address@your-host.whatever exit $rc
-
eof
HTH
Mark Taylor
#AIX-Forum