Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while read host; do
- while true; do
- wget -O /dev/null -o /dev/null $host &
- sleep 2;
- pidWget=$!;
- if ps -p $pidWget > /dev/null; then
- kill $pidWget;
- fi
- echo 'Do'
- done &
- done < hosts
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement