nsbin/old/mopping

13 lines
235 B
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
#/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