4
mirror of git://git.acid.vegas/tools.git synced 2024-11-24 17:06:39 +00:00
tools/help/monitor
2024-01-25 23:06:20 -05:00

8 lines
199 B
Bash
Executable File

#!/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