Message boards :
Number crunching :
Futher restrictions on when BOINC runs tasks...
Message board moderation
Author | Message |
---|---|
Damon Send message Joined: 3 Jun 99 Posts: 5 Credit: 25,326 RAC: 0 |
Hi, I have been failing to find with various searches how to do the following: if anyone can point me at the right page I'd be grateful. I'd like to disable/enable running tasks under additional criteria on my MacBook (MBA, Yosemite), eg from the command-line, eg even when on mains not to run unless the battery has fully charged, but possibly other things also. Rgds Damon |
HAL9000 Send message Joined: 11 Sep 99 Posts: 6534 Credit: 196,805,888 RAC: 57 |
The BOINC command too will allow you to control BOINC from a commandline, or via scripts. If there is no OS event that would signify when the battery is fully charged. Perhaps a script to monitor the battery level could be used. Then it could run the correct command to suspend or resume BOINC. SETI@home classic workunits: 93,865 CPU time: 863,447 hours Join the [url=http://tinyurl.com/8y46zvu]BP6/VP6 User Group[ |
Damon Send message Joined: 3 Jun 99 Posts: 5 Credit: 25,326 RAC: 0 |
Hi, That's what I was hoping, thanks. With your push I have found the data at: /Library/Application Support/BOINC Data and the code at: /Applications/BOINCManager.app/Contents/Resources/boinc (I can't see a boinccmd there, BTW) though at the moment I'm just getting a: Another instance of BOINC is running. so maybe I would have to live with either/or for command-line and GUI. Thanks Damon |
HAL9000 Send message Joined: 11 Sep 99 Posts: 6534 Credit: 196,805,888 RAC: 57 |
For some reason they don't distribute boinccmd with the GUI version of BOINC for the Mac. So you can download the (Unix command-line version) for your version of BOINC, extract boinccmd, & then place it in the /Library/Application Support/BOINC Data/ folder. Depending on your system you may also need to fix the file permissions. Permissions can be fixed by running the BOINC installer again or with the use of Mac_SA_Secure.sh located in the BOINC command-line download package. SETI@home classic workunits: 93,865 CPU time: 863,447 hours Join the [url=http://tinyurl.com/8y46zvu]BP6/VP6 User Group[ |
Damon Send message Joined: 3 Jun 99 Posts: 5 Credit: 25,326 RAC: 0 |
Thanks! I think that: ./boinccmd --set_run_mode is what I want, switching between 'auto' to use the built-in preferences, and 'never' if I want to externally suspend all processing, eg because batteries are not completely full. Damon |
ivan Send message Joined: 5 Mar 01 Posts: 783 Credit: 348,560,338 RAC: 223 |
If it's like the Linux version (highly likely :-), just ./boinccmd on its own will give all the options. I've got lots of scripts to do all sorts of things (e.g. when communications were flaky I had a cron job run two or three times an hour to check for finished jobs to upload them) but some of them rely on other awk or python scripts as well. I also need to use the command line on systems where BOINC won't compile the GUI (boincmgr) due to missing or mismatched libraries. |
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.