Guest User

Untitled

a guest
Dec 18th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. date >> teste.txt
  2. cat hosts.txt | while read output
  3. do ping -c 10 -i 1 "$output" >> teste.txt
  4. done
  5. date >> teste.txt
  6.  
  7. command &
  8. command &
  9. wait
  10.  
  11. command > "${tmp1}" &
  12. command > "${tmp2}" &
  13. wait
  14. cat "${tmp1}" "${tmp2}" >> "${main}"
  15. rm -f "${tmp1}" "${tmp2}"
  16.  
  17. date >> teste.txt
  18. cat hosts.txt | parallel -j0 ping -c 10 -i 1 {} >> teste.txt
  19. date >> teste.txt
Add Comment
Please, Sign In to add comment