Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tmpFile=/tmp/tmp.$$
- touch $tmpFile
- thDo() {
- echo $1: `ssh mlc@$1 "find /home/mlc/Video/*/2010 -iname \"*.jif\" | wc -l"` >> $tmpFile
- }
- thDo 011mlc010 &
- thDo 021mlc010 &
- thDo 031mlc010 &
- thDo 041mlc010 &
- while [ `cat $tmpFile | wc -l` != 4 ]; do
- sleep 1
- done
- echo Done:
- cat $tmpFile
- rm $tmpFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement