Created
November 17, 2016 09:03
-
-
Save sudodoki/ed3f022b618014885f7fa74c07ec7bf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
output=$( curl -s $1 -D -) | |
if [ $? -ne 0 ]; then | |
echo "$(date) Something went wrong with $1: $output | |
" | |
else | |
echo "$(date) Got response $1" | |
fi | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment