cancel
Showing results for 
Search instead for 
Did you mean: 

Email notifications

 
SOLVED
Go to solution
Adam W.
Valued Contributor

Email notifications

Guru's,
Pardon my ignorance here, I am still rather new to this, but is there a "Generic" way to add an e-mail notification to a script? I mean like a simple piece that can be added to any script to add an e-mail notification? Or does it have to be more specific to every script?
There are two types of people in the world, Marines and those who wish they were.
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: Email notifications

Shalom,

This script is programmable, configurable and can even include an attachment.

http://www.hpux.ws/?p=7

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adam W.
Valued Contributor

Re: Email notifications

Thanks SEP. That was the ticket. Very nice. Thanks again SEP!
There are two types of people in the world, Marines and those who wish they were.
Pete Randall
Outstanding Contributor
Solution

Re: Email notifications

Just append a mail line to the end of the script:

echo success > /tmp/results
mailx -s "Notification Reminder" joeuser@whereever.com < /tmp/results

Or make a generic script that does the mailing as above and invoke that mail script at the end of your script, using variables to tell what script was run and the success or failure state of it.


Pete

Pete
Adam W.
Valued Contributor

Re: Email notifications

Thanks GURU'S!!
There are two types of people in the world, Marines and those who wish they were.