2019-09-09 16:53:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# 2019-09-10, Nico Schottelius, Seoul
|
|
|
|
|
|
|
|
gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | (
|
|
|
|
while read line
|
2019-09-09 17:03:49 +00:00
|
|
|
do
|
|
|
|
name=$(echo $line | sed 's/\(.*\)(.*/\1/')
|
|
|
|
# Assume by default offline
|
|
|
|
online=offline
|
|
|
|
url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//')
|
|
|
|
echo "Checking $name on $url ..."
|
|
|
|
curl -6 -s "$url" > /dev/null && online=online
|
|
|
|
echo $name is $online
|
2019-09-09 16:53:43 +00:00
|
|
|
done
|
|
|
|
)
|