Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Forked from edwindotcom/loopCurl.sh
Created February 11, 2014 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gene1wood/8946276 to your computer and use it in GitHub Desktop.
Save gene1wood/8946276 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(eval echo {1..$1})
do
echo $(date +"%T")
if ! curl -v "https://accounts.firefox.com" -o /dev/null &>/tmp/c.out; then
cat /tmp/c.out
else
echo "success"
fi
sleep 20
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment