Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. tmpFile=/tmp/tmp.$$
  4. touch $tmpFile
  5.  
  6. thDo() {
  7.     echo $1: `ssh mlc@$1 "find /home/mlc/Video/*/2010 -iname \"*.jif\" | wc -l"` >> $tmpFile
  8. }
  9. thDo 011mlc010 &
  10. thDo 021mlc010 &
  11. thDo 031mlc010 &
  12. thDo 041mlc010 &
  13. while [ `cat $tmpFile | wc -l` != 4 ]; do
  14.     sleep 1
  15. done
  16. echo Done:
  17. cat $tmpFile
  18. rm $tmpFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement