init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
12
cron/ping_pong
Executable file
12
cron/ping_pong
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue