Advertisement
Guest User

distribute_boinc.sh

a guest
Nov 21st, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/bash
  2.  
  3. # usage: ./distribute_boinc
  4.  
  5. # this cannot use ./mass_cmd because it does a `scp` from the LOCAL directory,
  6. # and why make scp'ing more complicated by asking to copy the file from local to remote with a remote ssh command?
  7.  
  8. # path that is per-computer
  9. COMP_PATH='/localdisk/boinc';
  10.  
  11. #---
  12.  
  13. computers='names of computers separated by space'
  14.  
  15. for C in $computers
  16. do
  17.     echo "Distributing to $C:"
  18.     ssh $C "mkdir -p $COMP_PATH"
  19.     # make sure only boinc, boinccmd, and boinc_client are the binaries starting with boinc*
  20.     scp boinc* $C:$COMP_PATH
  21. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement