CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron Setup in OS X Snow Leopard Server
Pages: [1]

Author Topic: Cron Setup in OS X Snow Leopard Server  (Read 2870 times)

midsouthpeace

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Cron Setup in OS X Snow Leopard Server
January 21, 2011, 11:53:04 am


I have set the following cron job up in the shell using crontab -e

30 * * * * curl --silent --compressed http://example.org/cron.php
*/5 * * * * curl --silent --compressed http://example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php
0 * * * * curl --silent --compressed http://example.org/sites/all/modules/civicrm/bin/EmailProcessor.php

The top cron job, for overall drupal site, fires successfully, but the others don't. This has been created in the shell in one document. Is this the problem?


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cron Setup in OS X Snow Leopard Server
January 21, 2011, 02:28:54 pm

Please read this page:

http://wiki.civicrm.org/confluence/display/CRMDOC33/Command-line+Script+Configuration

You need a few additional parameters when launching a civicrm command line script

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

midsouthpeace

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: Cron Setup in OS X Snow Leopard Server
January 28, 2011, 03:46:51 pm
The following was entered using crontab -e
*/5 * * * * curl --silent --compressed http://example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=user&pass=pass&key=key

It is still not firing though.

midsouthpeace

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: Cron Setup in OS X Snow Leopard Server
January 31, 2011, 02:32:43 pm
Problem solved. I had to rework the http script for it to run in the shell. I added a '\' before the '&' in the script so that it looked like this

*/5 * * * * curl --silent --compressed http://example.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=user\&pass=pass\&key=key

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron Setup in OS X Snow Leopard Server

This forum was archived on 2017-11-26.