How do I know if a cron job is working?

Asked by:
communify.biz / 5 Points
Time:
2011-12-08 11:33 am EST
Category:
How To
Hits:
3,335
Hi,

I'm using drupal and I'm trying to run cron.php automaticaly. I inserted the following rule in the cron job application in the control panel but it does not seem to work. Can anyone tell we what's wrong and what the correct line should be ?

php -q /home/commun52/public_html/degustation/cron.php

Thanks !

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
Staff
13,688 Points
2011-12-08 5:43 pm EST
Hello communify.biz,

I'm sorry you're having trouble setting up your cron job for Drupal. Is something happening or not happening that indicates the cron is not running?

As I was researching this for you, I noticed the cron has been set to run every minute of every hour. I would recommend lowering the frequency of that cron. Per Drupal's recommendations:

"For a modest personal site to which you post now and then, you might set up such a cron job to run once a day. For a more active site you'd likely want to run that job more often--perhaps every few hours or every hour."

This information on cron jobs from Drupal's site may be helpful:

http://drupal.org/documentation/modules/system

http://drupal.org/node/23714

To confirm the cron is running, you can set the cron job to email you each time it run.

We also have some helpful information in our article How to Run a Cron Job.

If you have any questions or need any additional assistance, please feel free to contact us.

Regards,

Christi N.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}