mop does not ping anymore (mopping)

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-12-28 19:46:06 +01:00
commit bd2765c540

12
old/mopping Executable file
View file

@ -0,0 +1,12 @@
#/bin/sh
HOST="uchusphere.dyndns.org"
COUNT="2"
SLEEP="2"
while [ true ]; do
MESSAGE="$HOST online"
ping -c $COUNT $HOST >/dev/null 2>&1 || MESSAGE="$HOST offline"
echo $MESSAGE '(' `date +%H:%M` ')'
sleep $SLEEP
done