Message boards : Questions and problems : Suspend all Projects Command line?
Message board moderation
Author | Message |
---|---|
Send message Joined: 14 Aug 12 Posts: 8 ![]() |
Is there a way using the command line you can send suspend/no new work to all projects attached? I know you can do one project at a time manually. I want to be able to use a batch file on several different PC's with different projects on each of them. |
![]() Send message Joined: 29 Aug 05 Posts: 15634 ![]() |
You could use boinccmd --set_run_mode never 9999, which will suspend BOINC for 9999 seconds. Which should do about the same as you probably want to do. |
Send message Joined: 14 Aug 12 Posts: 8 ![]() |
I came up with this little batch file does does what I need. I just though there might be a build in function. ----------------------------------------------- @echo off ::Example: AllProjects.cmd <Command> "C:\Program Files\BOINC\boinccmd.exe" --get_project_status | find "master URL:" > ProjectList.txt for /F "tokens=3" %%p in (ProjectList.txt) do "C:\Program Files\BOINC\boinccmd.exe" --project %%p %1 ----------------------------------------------- Clearly this is for a dos command prompt, But this can be done in linux. Probably easier then in dos... |
Send message Joined: 8 May 10 Posts: 90 ![]() |
Guess what? Indeed it is: % boinccmd --get_project_status \ | sed -n -e '/master URL:/s/.\+URL://p' \ | while read ; do \ boinccmd --project $REPLY suspend \ ; done I'm counting for science, points just make me sick. |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.