Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Messages to Page Script

Status
Not open for further replies.

ITGoddess

IS-IT--Management
Dec 13, 2001
8
US
Greetings!

I would be exceptionally grateful if someone out there could share a script they use to send events (dial out to pager number w/alphanumeric or numeric number, either will do.

Already have a fairly simple script for mail notification, would like to embellish for paging:

if [ -z "`ps -ef | grep PRINTQ_DEAMON | grep -v grep`" ]
then
echo "Daemon Dead!" | mail me@somewhere.com
fi

Many Thanks,
-Michelle
 
Michelle,

I believe what you are doing in the shell script is perfectly fine. But I think some set up needs to be done at the Mail Server.

In my previous company, we were using this feature and the shell script had the following command -

echo &quot;Error in program&quot; | mail me@pager.<<companyname>>.com

Unfortunately, I donot know what set up was done at the mail server level or if any set was done with the Paging Service Provider.

If I have any further information, I will definitely share it with you all.

Thanks !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top