Advertisement
Guest User

cmd_boinc.sh

a guest
Nov 20th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. # usage: ./cmd_boinc <computer(s)> <arguments>
  4. #
  5. # example: ./cmd_boinc all --project <url> update
  6. #          update all projects: send unsent data
  7. # example: ./cmd_boinc computername1 --get_tasks
  8. #          shows the tasks from computer "computername1"
  9. # example: ./cmd_boinc all --get_tasks | grep "fraction done: 0.*[^0]" | sort | head -n <cores>
  10. #          shows the percent-done of all tasks that have non-zero percents, fill in <cores> to the known number of cores doing work
  11.  
  12. args=`echo $@ | sed -e "s/$1 //"`
  13.  
  14. # see mass_cmd.sh: first '.' is CURRENT DIRECTORY from run location; second '.' is $COMP_PATH in mass_cmd.sh (the location the binaries and data are)
  15. ./mass_cmd.sh $1 "./boinccmd $args"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement