Skip to content

Instantly share code, notes, and snippets.

@technovangelist
Last active July 18, 2016 00:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save technovangelist/30e997c0530c9331c37b to your computer and use it in GitHub Desktop.
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
#!/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