SHOW:
|
|
- or go back to the newest paste.
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 | - | scp boinc $C:$COMP_PATH |
19 | + | # make sure only boinc, boinccmd, and boinc_client are the binaries starting with boinc* |
20 | - | scp boinccmd $C:$COMP_PATH |
20 | + | scp boinc* $C:$COMP_PATH |
21 | - | scp boinc_client $C:$COMP_PATH |
21 | + |