Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 14:03:48 +1100
From:      BSD Freak <bsd-freak@mbox.com.au>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   ping failure script
Message-ID:  <113fc9110004.110004113fc9@mbox.com.au>

next in thread | raw e-mail | index | archive | help
Hi all,

I want to run a shell script from cron that has the following logic 
but I am totally unsure where to start with the syntax. It goes like 
this:

IF 3 consecutive pings to my.host.com fail  THEN
echo "Link is DOWN!!" | mail me@mycompany.com
end


Thanks in advance....

---------------------------------------------------------------------
Your own fax service 24x7, no extra line or fax machine required
http://www.mbox.com.au

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?113fc9110004.110004113fc9>