Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
![]() |
World Community Grid Forums
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 158
|
![]() |
Author |
|
johncmacalister2010@gmail.com
Veteran Cruncher Canada Joined: Nov 16, 2010 Post Count: 799 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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! ![]() ![]() 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) ![]() |
||
|
hchc
Veteran Cruncher USA Joined: Aug 15, 2006 Post Count: 803 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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?
[Edit 1 times, last edit by hchc at Mar 25, 2018 8:16:49 PM] |
||
|
johncmacalister2010@gmail.com
Veteran Cruncher Canada Joined: Nov 16, 2010 Post Count: 799 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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) ![]() |
||
|
hchc
Veteran Cruncher USA Joined: Aug 15, 2006 Post Count: 803 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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"?> 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.
[Edit 5 times, last edit by hchc at Mar 27, 2018 6:40:43 AM] |
||
|
Jean-David Beyer
Senior Cruncher USA Joined: Oct 2, 2007 Post Count: 337 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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). ![]() |
||
|
Jean-David Beyer
Senior Cruncher USA Joined: Oct 2, 2007 Post Count: 337 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 ![]() |
||
|
johncmacalister2010@gmail.com
Veteran Cruncher Canada Joined: Nov 16, 2010 Post Count: 799 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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) ![]() |
||
|
hchc
Veteran Cruncher USA Joined: Aug 15, 2006 Post Count: 803 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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
|
||
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2169 Status: Recently Active Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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] |
||
|
hchc
Veteran Cruncher USA Joined: Aug 15, 2006 Post Count: 803 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
@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."
[Edit 1 times, last edit by hchc at Mar 29, 2018 2:27:53 AM] |
||
|
|
![]() |