cron job formatting for Linux

mikey
mikey
Joined: 22 Jan 05
Posts: 12682
Credit: 1839085974
RAC: 3864
Topic 227793

I want to setup a cronjob in Linux to tell Boinc project X to update without me manually clicking the update tab all the time, I know how to do the crontab -e and how to set the timing ie 1 * * * * to make it do it every 60 seconds but don't know how to format the Boinc command to do it. I know in Windows you make a small batch file like this:

cd "c:\program files\boinc"

boinccmd  --project https://universeathome.pl/universe/

update

and then you go into Windows to tell it how often to run it, I used this during the latest Boinc Pentahalon to keep my Universe tasks topped up, as much as possible, when they were having connection issues

Thank you very much for any tips and tricks to make this work for me

mikey

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4964
Credit: 18717743113
RAC: 6388948

mikey wrote:I want to setup

mikey wrote:

I want to setup a cronjob in Linux to tell Boinc project X to update without me manually clicking the update tab all the time, I know how to do the crontab -e and how to set the timing ie 1 * * * * to make it do it every 60 seconds but don't know how to format the Boinc command to do it. I know in Windows you make a small batch file like this:

cd "c:\program files\boinc"

boinccmd  --project https://universeathome.pl/universe/

update

and then you go into Windows to tell it how often to run it, I used this during the latest Boinc Pentahalon to keep my Universe tasks topped up, as much as possible, when they were having connection issues

Thank you very much for any tips and tricks to make this work for me

mikey

Don't bother with cron.  Much too complicated for what you need to do.

Just go to wherever you have boinccmd installed and open a Terminal and input this:

watch -n 60 ./boinccmd --project http://einstein.phys.uwm.edu/ update

Then minimize the Terminal to the dock and let it run.

 

 

mikey
mikey
Joined: 22 Jan 05
Posts: 12682
Credit: 1839085974
RAC: 3864

Keith Myers wrote: mikey

Keith Myers wrote:

mikey wrote:

I want to setup a cronjob in Linux to tell Boinc project X to update without me manually clicking the update tab all the time, I know how to do the crontab -e and how to set the timing ie 1 * * * * to make it do it every 60 seconds but don't know how to format the Boinc command to do it. I know in Windows you make a small batch file like this:

cd "c:\program files\boinc"

boinccmd  --project https://universeathome.pl/universe/

update

and then you go into Windows to tell it how often to run it, I used this during the latest Boinc Pentahalon to keep my Universe tasks topped up, as much as possible, when they were having connection issues

Thank you very much for any tips and tricks to make this work for me

mikey

Don't bother with cron.  Much too complicated for what you need to do.

Just go to wherever you have boinccmd installed and open a Terminal and input this:

watch -n 60 ./boinccmd --project http://einstein.phys.uwm.edu/ update

Then minimize the Terminal to the dock and let it run.

Thank you I will try that today!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.