nsbin/mopping
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02: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