CRON

CRON

Bill Hopkinson -
回帖数:7
My Webhost for my Moodle site tells me that they do not have a CRON service. What options do I have for get CRON to operate for my Moodle site?
回复Bill Hopkinson

Re: CRON

A K -
The 'cron' (or similar) service doesn't need to run on your host. It simply needs to run on any computer which can (i) schedule tasks at pre-defined times - in the case of Moodle every 10 minutes is a good starting point and (ii) access a remote web page on your server.

You then use the program to regularly run a program which visits the appropriate server web page, which will in turn trigger routine / houskeeping tasks.

If you have access to such a computer running Linux or some other flavour of Unix you can use the standard Unix 'cron' command to specify that the program 'wget' is run every 10 minutes. 'wget' is short for 'web get' and simply requests a web page, triggering the housekeeping activity. cron lets you specify the frequency and wget lets you specify the page. Both cron and wget are described in standard Unix / Linux documentation.

If you have access to such a computer running Windows you can use the 'Moodlecron' program. This can run as a Windows service and allows you to specify both the frequency and web address. Moodlecron is described somewhere on this site and in the documentation if you do a search... can't remember where off the top of my head.

(You should be able to do something similar to Moodlecron using the standard Windows task manager and a suitable web-page-visiting program. I haven't tried this, but the principle's straightforward).

Hope that helps.

Andrew.
回复A K

Re: CRON

Bill Hopkinson -
Thanks, I have downloaded the Windows cron software, but this assumes that my Windows machine is permanently switched on and connected I guess, which is not the case.
回复Bill Hopkinson

Re: CRON

Geof Duncan -
GoDaddy doesn't offer a cron service either. I think you're in the same boat I was and I didn't trust a windows machine to be on 24/7. So, I outsourced!!

Web based cron (http://webbasedcron.com/) will do up to 5 cron jobs for $14.95 a year. Each cron can run up as many times as you like. Works for me!!
回复Geof Duncan

Re: CRON

Bill Hopkinson -
Thanks for that. Seems just what I need
回复Bill Hopkinson

Re: CRON

Philippe Verdenal -
Hi Bill,

I have been using for a while, and with total success, a web based Cron on http://www.webcron.org/
It is free, has a few useful features, but unfortunately in French, which is absolutely not a problem to run cron jobs, or any other repetitive jobs.
Hope this will be useful for you or anybody else.

Cheers,