Skip to content

Instantly share code, notes, and snippets.

@pavelnikolov
Forked from technovangelist/webtest.sh
Created July 18, 2016 00:38
Show Gist options
  • Save pavelnikolov/6fc27d266e050f3110f38fabd8ff66f3 to your computer and use it in GitHub Desktop.
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
#!/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