Created
October 3, 2019 17:08
-
-
Save deevis/b2863c21fb892519452a18a65d7a4229 to your computer and use it in GitHub Desktop.
Check for url responsiveness/timeout/connectivity
This file contains hidden or 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
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