Re: Ping script

From: Aaron W. Morris (decep@NETSCAPE.NET)
Date: Mon Jun 17 2002 - 15:30:43 EDT


#!/usr/bin/ksh

export PATH=/usr/bin

ping -c 1 123.123.123.123 > /dev/null

if [ $? -ne 0 ]; then {
/usr/sbin/sendmail -t <<EOF
To: blah@blah.com

help!!!!
EOF
} fi

It's simple, but should work.

Tony Osmolowski <tosmolowski@intlcheck.com> wrote:

>Hi everyone,
>
>Does anyone have a ping script on hand that if no replies are given, to
>send a page to a pager?
>
>Thanks,
>
>--
>Tony Osmolowski
>Network Administrator
>
>

__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:15:59 EDT