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) »
  • Script to test cron
Pages: [1]

Author Topic: Script to test cron  (Read 893 times)

airwaves

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
Script to test cron
October 21, 2009, 01:48:13 pm
Hi There,

My ISP gives me limited access to linux cron tab. I have to use the (admin)panel for that.
He gave me an script that I can use to fire a php script.

You know the problem with most panels is that they can't deal with the info after the ? So the ?name=cron&pass=joomlapass&key=baOqAaKXce81made_up_key_DVDLiSiSuUR7 of the script below isn't given to the php parser. The result of this is that the script isn't properly run.

Code: [Select]
<?php
@include("http://www.mysite.com/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=cron&pass=joomlapass&key=baOqAaKXce81made_up_key_DVDLiSiSuUR7");
?>


To bad my php knowledge is almost zero.

Who can help me to add code to the script above to see if the cron is running.
I want some sort of feedback. (an email with the output or some confirmation)

I doubt that the script is oké becouse it doesn't schedule a mailing (and it should)

Any help would be welcome.

Edwin

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: Script to test cron
October 21, 2009, 02:53:33 pm

not sure if u r looking for paid help, if so u might want to post it in civicrm jobs

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Script to test cron

This forum was archived on 2017-11-26.