Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 158
Posts: 158   Pages: 16   [ Previous Page | 4 5 6 7 8 9 10 11 12 13 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 45508 times and has 157 replies Next Thread
johncmacalister2010@gmail.com
Veteran Cruncher
Canada
Joined: Nov 16, 2010
Post Count: 799
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

This is WAY beyond my ability and I want to help with this project: I have not received a TB task since July 2017. Is there an easy way to get TB tasks?

Thanks.....

thx NixChix! for the above script. When I try to add to task scheduler I get the following message "One or more of the specified arguments are not valid" I have changed my user ID I have also changed the location of the command file (at bottom of script) as I have 64 bit system. I am running windows 10 I have selected this accordingly I am also based in New Zealand if I need to change the date and time section could somebody please explain how. Thank you for any assistance

It worked for me on x64 bit Win10, with CET setting...so why shouldn't work for you?

All I've changed is a username, which was still invalid...so I changed that within settings in Task Scheduler...Just in list General, go to "Change User or Group"m then "Advanced" & then "Find New"...& sellect from the list your user & it will work!
wink

----------------------------------------


crunching, crunching, crunching.

AMD Ryzen 5 2600 6-core Processor with Windows 11 64 Pro.

AMD Ryzen 7 3700X 8-Core Processor with Windows 11 64 Pro (part time)


smile
[Mar 25, 2018 8:24:13 AM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 803
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

This is WAY beyond my ability and I want to help with this project: I have not received a TB task since July 2017. Is there an easy way to get TB tasks?

Thanks.....

Sure. Where are you having the most issues? Need lots more info. Running Windows (which version?)? Any errors in Task Scheduler?
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

----------------------------------------
[Edit 1 times, last edit by hchc at Mar 25, 2018 8:16:49 PM]
[Mar 25, 2018 8:16:09 PM]   Link   Report threatening or abusive post: please login first  Go to top 
johncmacalister2010@gmail.com
Veteran Cruncher
Canada
Joined: Nov 16, 2010
Post Count: 799
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

Thanks: I have never used the scheduler which appears too complex for me. Programming was never one of my talents, despite a number of years leading application development teams and auditing MVS operating system operations and security. I use Win 10 Pro...I think I will skip TB task processing for now. I have three volunteer jobs in retirement and have no time to even acquire the knowledge tp process TB tasks. Given the numbers dying from this disease, this is a pity.

John



This is WAY beyond my ability and I want to help with this project: I have not received a TB task since July 2017. Is there an easy way to get TB tasks?

Thanks.....

Sure. Where are you having the most issues? Need lots more info. Running Windows (which version?)? Any errors in Task Scheduler?

----------------------------------------


crunching, crunching, crunching.

AMD Ryzen 5 2600 6-core Processor with Windows 11 64 Pro.

AMD Ryzen 7 3700X 8-Core Processor with Windows 11 64 Pro (part time)


smile
[Mar 26, 2018 3:56:50 AM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 803
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

Thanks: I have never used the scheduler which appears too complex for me. Programming was never one of my talents, despite a number of years leading application development teams and auditing MVS operating system operations and security. I use Win 10 Pro...I think I will skip TB task processing for now. I have three volunteer jobs in retirement and have no time to even acquire the knowledge tp process TB tasks. Given the numbers dying from this disease, this is a pity.

It's only about 5 minutes of work. No "learning" necessary since others have already created the Scheduled Task for you. There's no programming involved.

I modified NixChix's original scheduled task with the following changes:
1. Changed path to 64-bit BOINC.
2. Changed the triggers to run for 24 hours instead of 12.
3. Added a trigger for :17/:47 after the hour.
4. Changed the task to run under SYSTEM. I agree this isn't as secure as running the task under a local standard account or a limited BOINC account, but it was a quick-and-dirty way for me to accomplish it.

Instructions

1. Copy and paste the following into your favorite plaintext editor. You can even use Notepad if that's all you have. Save it as "BOINC.xml" or any file name you prefer. Just make sure the extension is XML.

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2016-12-14T00:09:54.4534673</Date>
<Author>NixChix</Author>
<Description>Run boinccmd to cause an update to WCG</Description>
<URI>\BOINC</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<Repetition>
<Interval>PT30M</Interval>
<Duration>P1D</Duration>
<StopAtDurationEnd>false</StopAtDurationEnd>
</Repetition>
<StartBoundary>2018-03-26T20:03:00-04:00</StartBoundary>
<ExecutionTimeLimit>PT30M</ExecutionTimeLimit>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
<CalendarTrigger>
<Repetition>
<Interval>PT30M</Interval>
<Duration>P1D</Duration>
<StopAtDurationEnd>false</StopAtDurationEnd>
</Repetition>
<StartBoundary>2018-03-26T20:17:00-04:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>S-1-5-18</UserId>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>"C:\Program Files\BOINC\boinccmd.exe"</Command>
<Arguments>--project http://www.worldcommunitygrid.org update</Arguments>
</Exec>
</Actions>
</Task>


2. Open Task Scheduler as Administrator. (Right-click, then click on "Run as administrator.")

3. On the left side where it says "Task Scheduler Library," right-click and select "Import Task..."

4. Choose the XML file you just saved.

And you're done! Be sure that Help Stop TB is the only project selected in your "My Projects" page on World Community Grid. Of course, once you've reached your HSTB goals, this task should be Disabled or deleted.
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

----------------------------------------
[Edit 5 times, last edit by hchc at Mar 27, 2018 6:40:43 AM]
[Mar 27, 2018 12:00:34 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Jean-David Beyer
Senior Cruncher
USA
Joined: Oct 2, 2007
Post Count: 337
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

It is even easier in Linux.
1.) Create a file like this:

#! /bin/bash
sleep 14
/usr/bin/boinccmd --project http://www.worldcommunitygrid.org update
exit 0
1a.) call it something like this (obviously, put it where you want it):
/home/jeandavid8/Downloads/WCGstopTB.sh

2.) Do crontab -e and insert this(obviously, use the file you made in 1a):
# added WCGstopTB.sh
#Min Hr DOM Mo DOW Command
17 * * * * /home/jeandavid8/Downloads/WCGstopTB.sh
47 * * * * /home/jeandavid8/Downloads/WCGstopTB.sh
2a.) save it.

It will run as required, whether you are logged into Linux or not (provided Linux is running, of course).
----------------------------------------

[Mar 27, 2018 12:35:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Jean-David Beyer
Senior Cruncher
USA
Joined: Oct 2, 2007
Post Count: 337
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

When I changed the update times, I started getting work units again.

29-Jan-2018 10:03:20 Started download of 013880a38015fe509440abda7f3aa0cb.tpr
29-Jan-2018 10:33:18 Started download of 39f43f6274f625d7355fd78f95a5faed.tpr
29-Jan-2018 16:03:21 Started download of 24c82dbb69eeb2af00d52dc34178a478.tpr
29-Jan-2018 16:03:21 Started download of e2ac68f1107f2fda717a5a6ef1558385.tpr

27-Mar-2018 16:17:24 Started download of e1bb74b0e45b81dfa4692877a1075c61.tpr
27-Mar-2018 16:17:24 Started download of fd3d5b3f8f1bfe9e0b33a06320bea806.tpr
27-Mar-2018 16:19:31 Started download of fd1536332cafc58f78b6f0ecb4eeae90.tpr
----------------------------------------

[Mar 27, 2018 10:42:15 PM]   Link   Report threatening or abusive post: please login first  Go to top 
johncmacalister2010@gmail.com
Veteran Cruncher
Canada
Joined: Nov 16, 2010
Post Count: 799
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

Many thanks for this!!
----------------------------------------


crunching, crunching, crunching.

AMD Ryzen 5 2600 6-core Processor with Windows 11 64 Pro.

AMD Ryzen 7 3700X 8-Core Processor with Windows 11 64 Pro (part time)


smile
[Mar 27, 2018 11:11:30 PM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 803
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

It is even easier in Linux.
1.) Create a file like this:

#! /bin/bash
sleep 14
/usr/bin/boinccmd --project http://www.worldcommunitygrid.org update
exit 0
1a.) call it something like this (obviously, put it where you want it):
/home/jeandavid8/Downloads/WCGstopTB.sh

2.) Do crontab -e and insert this(obviously, use the file you made in 1a):
# added WCGstopTB.sh
#Min Hr DOM Mo DOW Command
17 * * * * /home/jeandavid8/Downloads/WCGstopTB.sh
47 * * * * /home/jeandavid8/Downloads/WCGstopTB.sh
2a.) save it.

It will run as required, whether you are logged into Linux or not (provided Linux is running, of course).


I didn't even bother making a Shell script in Linux. Just put the command directly in crontab:

03 *    * * *   boinc   boinccmd --project http://www.worldcommunitygrid.org update
17 * * * * boinc boinccmd --project http://www.worldcommunitygrid.org update
33 * * * * boinc boinccmd --project http://www.worldcommunitygrid.org update
47 * * * * boinc boinccmd --project http://www.worldcommunitygrid.org update

----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

[Mar 28, 2018 7:04:53 AM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2169
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

Reading 'man 5 crontab' I found this blurb:
The jobs in cron.d and /etc/crontab are system jobs, which are used usually for more than one user, thus, additionally the username is needed. MAILTO on the first line is optional.
I don't wanna be a wiseguy, but there has to be said something about security on your system.
Since there is no need to execute boinccmd as a system job (isn't it?) I would advise to use your own personal crontab. (Check to see if you can run 'boinccmd --get_old_tasks' as a user.)
In a user's crontab there is no need to put a username in front. What's more, it will not work. If you have created your own personal crontab, e.g. with the command 'crontab -e', you will have to leave out the word 'boinc'.
----------------------------------------
[Edit 1 times, last edit by adriverhoef at Mar 28, 2018 11:44:55 AM]
[Mar 28, 2018 11:37:21 AM]   Link   Report threatening or abusive post: please login first  Go to top 
hchc
Veteran Cruncher
USA
Joined: Aug 15, 2006
Post Count: 803
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Using Scheduled boinccmd to get HSTB Work

@adriverhoef, thanks for the advice. I'm a 'nix newbie, so I didn't know much about how cron works and just set it up within a few minutes. The BOINC client package automatically created a "boinc" limited user and runs everything under boinc, so I figured setting up the crontab to also run as the "boinc" user would limit the execution privileges of the command.

I guess I haven't learned the security difference between running the system crontab as "boinc" user vs. running a personal crontab as "boinc." Maybe there is a difference after all, even though they both would run as "boinc."
----------------------------------------
  • i5-7500 (Kaby Lake, 4C/4T) @ 3.4 GHz
  • i5-4590 (Haswell, 4C/4T) @ 3.3 GHz
  • i5-3570 (Broadwell, 4C/4T) @ 3.4 GHz

----------------------------------------
[Edit 1 times, last edit by hchc at Mar 29, 2018 2:27:53 AM]
[Mar 29, 2018 2:26:32 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 158   Pages: 16   [ Previous Page | 4 5 6 7 8 9 10 11 12 13 | Next Page ]
[ Jump to Last Post ]
Post new Thread