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 CiviMail (Moderator: Piotr Szotkowski) »
  • Hi, I am using jCron to set up cronjobs.
Pages: [1]

Author Topic: Hi, I am using jCron to set up cronjobs.  (Read 1357 times)

NilsHenrik

  • Guest
Hi, I am using jCron to set up cronjobs.
July 13, 2009, 01:49:26 pm
Good afternoon.
I set up the site key in my civicrm.settings.php. Now, in JCron I am setting up a command
http://artoutlet.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php, as well as setting the UNIX Crontab.

I understand from reading the Wiki post that I also have to hard code the admin name and password, in addition to specifying the site key. Right now i get the "ERROR: You need to send a valid user name and password to execute this file."

Where and how would I do that? And if I add that to the cronjob.php file, is it safe against hackers?

Greetings, Henrik

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Hi, I am using jCron to set up cronjobs.
July 14, 2009, 12:54:39 am
Henrik,

I've never used jCron so I'll just assume that it's analogous to UNIX crontab.

All the information you need is at http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation or on the links therein. I found this page by clicking on "Documentation" from this forum and then searching the wiki for "civimail" and "job".

Now ...
... How are you invoking the URL? (wget? curl?)
... Are you adding the username, password, and key as parameters to the URL?
... Are you escaping any special characters in these strings to protect them from the shell?

Ken

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Hi, I am using jCron to set up cronjobs.
July 14, 2009, 08:13:29 am
This doc might also shed some light for you:
http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration
Protect your investment in CiviCRM by  becoming a Member!

NilsHenrik

  • Guest
Hi back in the forum again
July 17, 2009, 11:51:04 am
Thanks for both of your supplies. i was out for a couple of days.... and now back to challenge my CIVICRM beginner skills.  ;) Henrik

NilsHenrik

  • Guest
OK, I am happy to report that I resolved my JCron job issue.
July 23, 2009, 07:16:17 am
I am sure you all are dying to hear this.  8)
On to the next CivicRM challenge. I am setting up PayPal now as my payment processor.
Henrik

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Hi, I am using jCron to set up cronjobs.

This forum was archived on 2017-11-26.