Last active
July 18, 2016 00:38
-
-
Save technovangelist/30e997c0530c9331c37b 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