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) »
  • Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)
Pages: [1]

Author Topic: Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)  (Read 1220 times)

Donald Truss

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Students 2 Science
  • CiviCRM version: 4.6.16
  • CMS version: Joomla 3.4.3
  • MySQL version: 5.1.52
  • PHP version: 5.2.4
Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)
April 22, 2011, 12:10:00 pm
I can send a test message, but once the message goes to schedule, will not send with "send immediately" or by scheduling.

Created post-data=name=username&pass=password&key=site-key
trying to do
.........export WGETRC=civicrm-wgetrc
.........wget -O - -q -t 1 \
..........http://www.example.org/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

But Hostgator control panel only allows for one command line.  I know there are other ways to accomplish this, but I am over my head. All suggestions welcomed!!!   Thank you in advance!
« Last Edit: April 22, 2011, 05:53:20 pm by Donald Truss »
Tell me and I'll forget
Show me and I may remember
Involve me and I'll understand

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)
April 22, 2011, 06:25:48 pm
Quote from: Donald Truss on April 22, 2011, 12:10:00 pm
But Hostgator control panel only allows for one command line.  I know there are other ways to accomplish this, but I am over my head. All suggestions welcomed!!!   Thank you in advance!

You need to put those multiple lines you want run into a special text file called a Shell Script. It is very similar to the Autoexec.bat back in the DOS and early Windows days.

The one line you put into the task scheduler will be the full path to that script file. On Linux systems, I name my scripts: "something.sh"

In that script file, begin with a Shebang ( http://en.wikipedia.org/wiki/Shebang_%28Unix%29 ), then the commands you want to run. There is an example of such still at this URL:
http://wiki.civicrm.org/confluence/display/CRMDOC32/Running+Command-line+Scripts
Section "EXAMPLE: Use "PHP CLI" within a Bash script to send queued CiviMail mailings (Drupal installation)"

Upload the script file to your server.

Set the eXecute bit on the file. If you have shell access, that would be the "chmod 0755 something.sh" command. If you have FTP access only, then somehow access the properties of the uploaded file and turn on the X bit for all ( User / Group / Other ).

That should be basically it.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

mudmin

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 1
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5
  • PHP version: not sure
Re: Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)
September 05, 2012, 01:01:37 pm
I'm using hostgator and joomla 2.5.6 and I don't even have Cron jobs showing up in my cpanel after I send. I have the same issue. I can send tests, but get no actual messages.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Joomla 1.5, civi 3.3.5 hostgator. I can't get cronjob to run (I surrender!)

This forum was archived on 2017-11-26.