Skip to content

Instantly share code, notes, and snippets.

@tmountain
Created February 20, 2014 21:06
Show Gist options
  • Save tmountain/9123196 to your computer and use it in GitHub Desktop.
Save tmountain/9123196 to your computer and use it in GitHub Desktop.
#!/bin/bash
HOST="173.230.128.9"
#HOST="app1.sharpspring.com"
COUNT=0
while :
do
COUNT=$[$COUNT+1]
RESPONSE=$(curl -s -w '%{time_total}' -o /dev/null http://$HOST/includes/js/app/main.js)
if [ 1 -eq `echo "${RESPONSE} > 5" | bc` ];
then
echo "Attempt $COUNT took $RESPONSE seconds"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment