Skip to content

Instantly share code, notes, and snippets.

@wilcorrea
Created November 23, 2020 20:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilcorrea/d828a6e53b9bbe57e2843759860555da to your computer and use it in GitHub Desktop.
Save wilcorrea/d828a6e53b9bbe57e2843759860555da to your computer and use it in GitHub Desktop.
#!/bin/bash
# usage:
# checker "https://myapp.com"
counter=0
while true
do
counter=$((counter + 1))
status=$(curl -o /dev/null -s -w "%{http_code}\n" ${1})
echo "${counter}:${status}"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment