Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Cron.

Talk:Cron: Difference between revisions

From MoodleDocs
(Since wget is being used to run the cron.php script anyway, you can really run this ANYWHERE)
(Ditto dummy comments - where to set cron to run automatically?)
Line 1: Line 1:
For setting-up cron using the Windows scheduler, a simpler way (avoiding the use of wget) is to set the task to run PHP instead (see the performance documentation). To do this set the run command as c:\php\php.exe -f f:\moodle\admin\cron.php. Several assumptions about paths here: php is installed in c:\php and moodle is installed on drive F:, so adjust to suit your own setup. [[User:Ken Wilson|Ken Wilson]] 20:04, 16 August 2006 (WST)
For setting-up cron using the Windows scheduler, a simpler way (avoiding the use of wget) is to set the task to run PHP instead (see the performance documentation). To do this set the run command as c:\php\php.exe -f f:\moodle\admin\cron.php. Several assumptions about paths here: php is installed in c:\php and moodle is installed on drive F:, so adjust to suit your own setup. [[User:Ken Wilson|Ken Wilson]] 20:04, 16 August 2006 (WST)
 
==Cron for dummies==
Hi all,
Hi all,
I looked for a forum link on this page that will take one to a forum that work with cron, it would really help for dummies like myself, i posted the server code and when i posted it gave me this error msg
I looked for a forum link on this page that will take one to a forum that work with cron, it would really help for dummies like myself, i posted the server code and when i posted it gave me this error msg
Line 6: Line 6:
but i dont see any problem with it
but i dont see any problem with it
Steven Putter
Steven Putter
:Ditto Steven's comments.  I am not seeing any clues as to where I set cron to run.  Of course I also am a real dummy.  I suspect is on the webhost but this needs to be explicit at the top for us who are not the brightest lightbulb in the pack and are doing things beyond our current abilities:)  --[[User:chris collman|chris collman]] 05:56, 20 May 2008 (CDT)


== Since wget is being used to run the cron.php script anyway, you can really run this ANYWHERE ==
== Since wget is being used to run the cron.php script anyway, you can really run this ANYWHERE ==

Revision as of 10:56, 20 May 2008

For setting-up cron using the Windows scheduler, a simpler way (avoiding the use of wget) is to set the task to run PHP instead (see the performance documentation). To do this set the run command as c:\php\php.exe -f f:\moodle\admin\cron.php. Several assumptions about paths here: php is installed in c:\php and moodle is installed on drive F:, so adjust to suit your own setup. Ken Wilson 20:04, 16 August 2006 (WST)

Cron for dummies

Hi all, I looked for a forum link on this page that will take one to a forum that work with cron, it would really help for dummies like myself, i posted the server code and when i posted it gave me this error msg "/tmp/crontab_ecoach":0: bad minute errors in crontab file, can't install but i dont see any problem with it Steven Putter

Ditto Steven's comments. I am not seeing any clues as to where I set cron to run. Of course I also am a real dummy. I suspect is on the webhost but this needs to be explicit at the top for us who are not the brightest lightbulb in the pack and are doing things beyond our current abilities:) --Chris collman 05:56, 20 May 2008 (CDT)

Since wget is being used to run the cron.php script anyway, you can really run this ANYWHERE

It is important to note that since the cron.php script is not run internally by Moodle, but by an outside interaction, you can really run a cron job on ANY server that runs the cron.php on your Moodle installation.

So, for example, if you have a Moodle install at an ISP that does not let you run cron jobs, but you have, say, a DSLline at home, you can use any of your Linux computers at home to run cron. (you do use Linux at home, right? :)

And the beauty of it is, the crontab line is *exactly* the same as listed in the main article. It just points to an outside URL.

Now, I mention this because at one point I had configured a server to run Moodle but, in the interest of security, I did not have wget available on the server. (cron was available, but not wget).

Well, the easiest thing to do was to just run a cron job somewhere else.

Alrighty, seeyalater!