12 lines
235 B
Text
Executable file
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
|