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 »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Running UpdateMembershipRecord.php using php-cli
Pages: [1]

Author Topic: Running UpdateMembershipRecord.php using php-cli  (Read 1278 times)

felixmartel

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.31
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Running UpdateMembershipRecord.php using php-cli
April 02, 2013, 12:07:19 pm
Hello,

I'm running my scripts in cron. The scripts civimail.cronjob.php and EmailProcessor.php are programmed using php-cli as explained in the documentation
Code: [Select]
cd /var/www/sites/all/modules/civicrm; nice -n19 /usr/bin/php  bin/EmailProcessor.php   -sdefault -uuser -ppassword
These scripts run like clockwork and never (well almost never) throw errors.

My UpdateMembershipRecord.php script is however running using wget. On occasion I get errors running it this way, especially when the server is busy.  I'd like to run it using php-cli like my other scripts, but I can't seem to figure out how to pass the parameters to it. The syntax with wget is &name=user&pass=password&key=site-key, but php-cli doesn't accept them in that form. I've tried a couple of variations with no success.

Anyone done this before with this script ?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Running UpdateMembershipRecord.php using php-cli
April 04, 2013, 02:53:24 pm
Did you see this: http://wiki.civicrm.org/confluence/display/CRMDOC42/CiviMail+Installation#CiviMailInstallation-Usingtheshell%28CLIPHP%29viaCrontab
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Running UpdateMembershipRecord.php using php-cli

This forum was archived on 2017-11-26.