Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ZSH script to visit a page over and over again with random seconds between visits
#!/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