df2daf524d
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
12 lines
264 B
Text
Executable file
12 lines
264 B
Text
Executable file
#HOSTS="www.spiegel.de www.lernen.de www.isc.org B.ROOT-SERVERS.NET"
|
|
HOSTS="www.heise.de www.netcraft.com "
|
|
|
|
STATUS=offline
|
|
|
|
for myh in $HOSTS; do
|
|
ping -c1 $myh >/dev/null 2>&1 && STATUS=online
|
|
done
|
|
|
|
if [ "$STATUS" = offline ]; then
|
|
echo 'Offline.'`date`
|
|
fi
|