-
-
Save pavelnikolov/6fc27d266e050f3110f38fabd8ff66f3 to your computer and use it in GitHub Desktop.
ZSH script to visit a page over and over again with random seconds between visits
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
#!/bin/zsh | |
# use webtest.sh <url to visit> | |
zmodload -i zsh/mathfunc | |
for i in {1..1000} | |
do | |
sleep $(( rand48()*2 )) | |
curl $1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment