Suspend all Projects Command line?

Message boards : Questions and problems : Suspend all Projects Command line?
Message board moderation

To post messages, you must log in.

AuthorMessage
Yamanipanuchi

Send message
Joined: 14 Aug 12
Posts: 8
United States
Message 45405 - Posted: 22 Aug 2012, 16:54:10 UTC

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.
ID: 45405 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15484
Netherlands
Message 45407 - Posted: 22 Aug 2012, 17:42:50 UTC - in response to Message 45405.  

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.
ID: 45407 · Report as offensive
Yamanipanuchi

Send message
Joined: 14 Aug 12
Posts: 8
United States
Message 45408 - Posted: 22 Aug 2012, 18:28:08 UTC - in response to Message 45407.  

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...
ID: 45408 · Report as offensive
whynot

Send message
Joined: 8 May 10
Posts: 89
Ukraine
Message 45433 - Posted: 25 Aug 2012, 14:13:56 UTC

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.
ID: 45433 · Report as offensive

Message boards : Questions and problems : Suspend all Projects Command line?

Copyright © 2024 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.