Skip to content

Instantly share code, notes, and snippets.

@iboard
Created February 26, 2019 16:07
Show Gist options
  • Save iboard/70a5344bdbe04bca9edf0f41e244b0e4 to your computer and use it in GitHub Desktop.
Save iboard/70a5344bdbe04bca9edf0f41e244b0e4 to your computer and use it in GitHub Desktop.
Shell script to check a list of https servers
#!/bin/bash
#
# Save this entire file to whatever-filename.sh
# run `chmod +x whatever-filename.sh`
# Edit the list of targets in the list below.
# And, finally run the script with ./whatever-filename.sh
#
TARGETS="\
52.59.236.106 \
altendorfer.at \
blog.altendorfer.at \
www.altendorfer.at \
iboard.cc \
www.iboard.cc \
www.e-matrix.at
e-matrix.at \
so.kportal.io \
acp.kportal.io \
zak.kportal.io \
"
# --- don't change below ----------
right () {
printf "%20.20s.... " "$1.........................................................................."
}
for i in $TARGETS
do
echo -n `right $i`
curl -o /dev/null -sS https://$i
if [ 0 = $? ]
then
echo "✓"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment