Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- maxjobs=10
- running=0
- while read host source target ; do
- ssh root@$host "./valamit-csinalunk $source $target" &
- running=$(($running+1))
- if [ "$running" -ge $maxjobs ]; then
- wait
- running=0
- fi
- done < replication.txt
- wait
Advertisement
Add Comment
Please, Sign In to add comment