Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- # usage: ./distribute_boinc
- # this cannot use ./mass_cmd because it does a `scp` from the LOCAL directory,
- # and why make scp'ing more complicated by asking to copy the file from local to remote with a remote ssh command?
- # path that is per-computer
- COMP_PATH='/localdisk/boinc';
- #---
- computers='names of computers separated by space'
- for C in $computers
- do
- echo "Distributing to $C:"
- ssh $C "mkdir -p $COMP_PATH"
- # make sure only boinc, boinccmd, and boinc_client are the binaries starting with boinc*
- scp boinc* $C:$COMP_PATH
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement