Client portal

Automating orders with CRON

 July 7, 2015     0 Comments

Firstly, you have to enable the order processor service under "Setup>>Plugins>>Automation Services"

If this is enabled, you will need to setup a cron job to run [in cpanel or Directadmin, etc].

Typically, the cron job command to setup would be:

php -q /path/to/ce/cron.php

where /path/to/ce would be /home/username/public_html/cedirectory/

Sometimes,  webhosts setup servers differently - so the cron may have to be modified, for example  ...

/usr/local/bin/php -c /home/My-Account-Name/public_html/php.ini -q /home/My-Account-Name/public_html/cedirectory/cron.php


The cron should be set to run every minute (* * * * *)

In these cases, it is best to check with your webhost how to setup the cron correctly. Here is one for BlueHost & JustHost.

In the Run Schedule fields you can enter any format accepted by the Cron utility. 

For example for the field Minute: 

* : every minute 
Number: e.g. 4 will make it run at :04 
Range: e.g. 1-3 will make it run at :01, :02, :03 
List: e.g. 1,3,7 will make it run at :01, :03, :07
Step: e.g. */3 will make it run every third minute 
Range and step: 0-30/2 will make it run every other minute till :30 

In Day of the Week you can enter a number in the range 0-6 (0 for Sunday) or a 3 letter shortcut (e.g. sun).

How helpful was this article to you?

Posting has been disabled.