Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- ## The time (in minutes) the script will run for. Change 10
- ## to whatever you want.
- end=$(date -d "10 minutes" +%s);
- ## Run until the desired time has passed.
- while [ $(date +%s) -lt "$end" ]; do
- ## Launch a new wget process if there are
- ## less than 70 running. This assumes there
- ## are no other active wget processes.
- if [ $(pgrep -c wget) -lt 70 ]; then
- wget http://www.betaservice.domain.host.com/web/hasChanged?ver=0 2>/dev/null &
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement