4
mirror of git://git.acid.vegas/tools.git synced 2024-11-21 23:46:39 +00:00
tools/help/monitor

8 lines
199 B
Plaintext
Raw Normal View History

2024-01-26 04:06:20 +00:00
#!/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