Skip to content

Instantly share code, notes, and snippets.

@caseyfw
Created April 1, 2016 08:41
Show Gist options
  • Save caseyfw/19f81d8f28fc479d3f9e384239a3ff21 to your computer and use it in GitHub Desktop.
Save caseyfw/19f81d8f28fc479d3f9e384239a3ff21 to your computer and use it in GitHub Desktop.
Adelaide Telstra TCP Connection Test Script
#!/bin/bash
while true; do
wget -O /dev/null --quiet --connect-timeout=2 www.adelaide.edu.au --tries=1
if [[ $? -eq 0 ]]; then
echo "$(date +%Y-%m-%d:%H:%M:%S) success"
else
echo "$(date +%Y-%m-%d:%H:%M:%S) fail"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment