Skip to content

Instantly share code, notes, and snippets.

@gmmeyer
Created January 14, 2016 23:04
Show Gist options
  • Save gmmeyer/19e3eb529dcdb4c1c6c1 to your computer and use it in GitHub Desktop.
Save gmmeyer/19e3eb529dcdb4c1c6c1 to your computer and use it in GitHub Desktop.
#!/bin/sh
addresses='/ /another-route /yet-another-route /yet-one-more-route /route/subroute'
base_address='https://my-website-address.io'
times='20'
bash_loop(){
for address in $addresses; do
curl "$base_address$address" >/dev/null 2>&1
done
}
while [ "$times" -gt "0" ]; do
bash_loop &
times=$(( $times - 1 ))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment