1

crontab -e displays

*/5 * * * * /persistent/sitename/scripts/cron-curl.sh
~
~
~
"/tmp/crontab.XXXX1FOZWa" 1L, 51C

Why is it not running every 5 minutes?

5
  • To which Drupal version are you interested? There is a little difference with Drupal 7 that you need to take in consideration.
    – apaderno
    Apr 27, 2011 at 22:06
  • Drupal 5. Managed to solve the problem with the help of Brock Boland. Apr 27, 2011 at 22:22
  • Thank you; I added the tag. If you resolved your own issue, then post an answer where you explain what you did, and accept it as answer. That would help other users with the same issue, and it will help Drupal Answers, which needs accepted answers.
    – apaderno
    Apr 27, 2011 at 22:24
  • @kiamlaluno without going into too much details, the url in cron-curl.sh must be the same url as the server. In our case, I was using a test server which has a different url to our site's url. This resulted in cron not running. Apr 27, 2011 at 22:30
  • That is what Brock Boland was suggesting, then. Remember to accept his answer; without accepted answers, Drupal Answers (this Q&A site) cannot pass the beta phase.
    – apaderno
    Apr 27, 2011 at 22:33

1 Answer 1

2

Did you modify cron-curl.sh to use the URL for your site? By default, it tries to load http://example.com/cron.php.

3
  • Hi Brock, curl --silent --compressed edocr.com/cron.php Apr 27, 2011 at 21:56
  • The formatting got messed up there, but is your site at edocr.com? The other ones appear to be commented out. Apr 27, 2011 at 22:00
  • ah...long story short.. edocr.com is my site, but we have few problems due to recent AWS EC2 outage and I need to replace the url with AWS server name - let me try and get back to you quickly Apr 27, 2011 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.