kieran8055 Posted September 18, 2009 Posted September 18, 2009 Hi All I am trying to setup moodle/admin/cron.php on ubuntu 8.04lts. (schedule tasks) I have set it up to run every 5 mins and checked forum it seems like it not working properly ( does n't sends emails ). Can anybody tell me how to set it up on schedule tasks to run cron automatically. Any help/suggestions would be appreciated. Thanks
kmount Posted September 18, 2009 Posted September 18, 2009 Check your access logs to see if it is working but isn't sending you a mail (for whatever reason). My crontab looks as follows: */5 * * * * wget -q -O /dev/null http://www.mymoodle.com/admin/cron.php What does yours look like?
kieran8055 Posted September 18, 2009 Author Posted September 18, 2009 Check your access logs to see if it is working but isn't sending you a mail (for whatever reason). My crontab looks as follows: */5 * * * * wget -q -O /dev/null http://www.mymoodle.com/admin/cron.php What does yours look like? Well mine aslo looks same as it is.
kmount Posted September 18, 2009 Posted September 18, 2009 Worth checking your logs then fella, by default in /var/log/apache2/ to see if its hitting it. If not, run the command manually from the shell and check if the log shows it hitting and we can look at why/if Cron is playing up.
kieran8055 Posted September 18, 2009 Author Posted September 18, 2009 Worth checking your logs then fella, by default in /var/log/apache2/ to see if its hitting it. If not, run the command manually from the shell and check if the log shows it hitting and we can look at why/if Cron is playing up. I cant see any hits in access.log or error.log How do i check from shell window? Cheers
kmount Posted September 18, 2009 Posted September 18, 2009 Pop in whatever you're using for your cron less the time indicators (the */5 and *'s) In my case: wget -q -O /dev/null my moodle login demo database at mymoodle.com
kieran8055 Posted September 18, 2009 Author Posted September 18, 2009 ho well sorted, I have enable cron job via command line i have to diable it ( leave default). Cheers :0)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now