Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- maxjobs=10
- running=0
- doit() {
- 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
- wait
- }
- cat replication.cfg | doit
Advertisement
Add Comment
Please, Sign In to add comment