Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date >> teste.txt
- cat hosts.txt | while read output
- do ping -c 10 -i 1 "$output" >> teste.txt
- done
- date >> teste.txt
- command &
- command &
- wait
- command > "${tmp1}" &
- command > "${tmp2}" &
- wait
- cat "${tmp1}" "${tmp2}" >> "${main}"
- rm -f "${tmp1}" "${tmp2}"
- date >> teste.txt
- cat hosts.txt | parallel -j0 ping -c 10 -i 1 {} >> teste.txt
- date >> teste.txt
Add Comment
Please, Sign In to add comment