On Friday 09 July 2004 05:00, Carl William Spitzer IV wrote:
On Thu, 2004-07-08 at 15:59, Leendert Meyer wrote:
On Friday 09 July 2004 00:45, mabergh@boystown.com.au wrote:
Dear Friends,
Can someone please suggest some software or a script etc. that will ping servers and send an alert message (via email) if the host is unreachable (crashed).
That's basic script programming.
man bash man ping man mail
#! /bin/sh
H='10.0.0.2' ping -q -c 1 $H &> /dev/null || echo "Host $H died" | mail root -s "Host $H died"
That's file if you want root notified.
Is that proper English? I do not understand this sentence.
What about mailing a user perhaps at your online or squirl mail account which you can check while on the road?
Exactly what did you not understand from mail's manpage? Cheers, Leen