nsbin/old/mopping
Nico Schottelius bd2765c540 mop does not ping anymore (mopping)
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-28 19:46:06 +01:00

12 lines
235 B
Text
Executable file

#/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