Skip to content

Instantly share code, notes, and snippets.

@deevis
Created October 3, 2019 17:08
Show Gist options
  • Save deevis/b2863c21fb892519452a18a65d7a4229 to your computer and use it in GitHub Desktop.
Save deevis/b2863c21fb892519452a18a65d7a4229 to your computer and use it in GitHub Desktop.
Check for url responsiveness/timeout/connectivity
for i in `seq -f "%02g" 1 10`; do echo -n "Attempt $i:"; curl --max-time 5 https://your.website.com/login 2>/dev/null | wc; done
# Output will be something like:
# Attempt 01: 18 145 10011
# Attempt 02: 18 145 10011
# Attempt 03: 0 0 0
# Attempt 04: 0 0 0
# Attempt 05: 0 0 0
# Attempt 06: 0 0 0
# Attempt 07: 18 145 10011
# Attempt 08: 0 0 0
# Attempt 09: 0 0 0
# Attempt 10: 18 145 10011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment