Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5402

Cli friendly batch jobs (no more wget or curl)

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.2
    • Component/s: CiviMail
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      Hi,

      Modified the cronjob and the EmailProcessor so you can run them from the shell directly. so, in your cron instead of

      wget --spider --force-html 'http://<yourdomain>.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=cronuser&pass=cronpass&password=password&key=key' >/dev/null 2>&1

      you would have
      nice -19 php bin/civimail.cronjob.php -k key -u cronuser -p cronpass -s <yourdomain>.com

      Benefits:

      • avoid the overhead of a http server
      • no timeout issue
      • no memory issue
      • can run at a lower priority than the website
      • can be run for a different user than www-data

      I'm waiting for the branch of 3.2 to submit the patch.

      And I would like to replace the user password by the user key or other alternatives as discussed there:

      http://forum.civicrm.org/index.php/topic,10887.0.html

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: