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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Proper cli version for cron
Pages: [1]

Author Topic: Proper cli version for cron  (Read 1063 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Proper cli version for cron
February 03, 2009, 03:44:32 am
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation#CiviMailInstallation-SettingUptheCronJob

I don't thing that's technically the best option to wget the cron job (eg .
wget yourdomain.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=aaa&pass=yyy&key=zzz ) as you go through the overhead of the webserver, have to mess around with the timeout/memory limit that are legitimate for a normal page, but more a pain for a batch type of job... and also you can't have it running at a lower priority (nice -19 ) than the web server.

I'm going to code a cli version, and was wondering if the user/pass is still useful with the key or if I could bypass that. Beside the "authentication", is this used somewhere else in the cron code or can I safely bypass it ?

X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Proper cli version for cron
February 03, 2009, 05:31:24 am
That would be great to develop a more efficient way to run the cron. I've run into problems with the UpdateMembershipRecord timing out: http://forum.civicrm.org/index.php?topic=6064

Hadn't thought that maybe part of the issue was with how the script was being called via cron.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Proper cli version for cron

This forum was archived on 2017-11-26.