Seti@Home optimized science apps and information

Optimized Seti@Home apps => Windows => Topic started by: Raistmer on 20 Apr 2009, 07:29:03 pm

Title: how to stop non-service BOINC from bat file ?
Post by: Raistmer on 20 Apr 2009, 07:29:03 pm
When I use boinccmd --quit it returns immediately, before boinc.exe actually stops.
That lead to damaged client_state  :-\
Title: Re: how to stop non-service BOINC from bat file ?
Post by: Richard Haselgrove on 21 Apr 2009, 04:40:29 am
Mymod of Fred's script has a double safeguard:

    ireturn = objShell.Run("NET STOP BOINC", 0, True)
    wscript.sleep (5000)

That 'True' halts execution until the 'NET' command returns (I'm only handling service mode at the moment, because that's what I use on my XP CUDA machines). Then there's a timed delay as well.

Can you emulate either of those in Perl?
Title: Re: how to stop non-service BOINC from bat file ?
Post by: Raistmer on 22 Apr 2009, 01:31:44 pm
No need to emulate it in perl, shell script will be enough.
I prefer some wait for boinc shutdown (to do true optimization) instead of some pre-defined delay (it may be too short anyway  BTW ).
And no-service mode should be taken (net stop boinc kills boinc service just fine w/o additional means - our KNA bench use it ).