mirror of
git://git.acid.vegas/tools.git
synced 2024-12-22 22:36:36 +00:00
8 lines
199 B
Plaintext
8 lines
199 B
Plaintext
|
#!/bin/sh
|
||
|
while true; do
|
||
|
for i in $(dig irc.supernets.org A irc.supernets.org AAAA +short); do
|
||
|
ping -c 1 $i 2>&1 >/dev/null
|
||
|
[ $? -ne 0 ] && echo "`date`: ping failed! ($i)"
|
||
|
done
|
||
|
sleep 300
|
||
|
done
|