UltimatePOS

  1. Home
  2. Docs
  3. UltimatePOS
  4. Technical
  5. Setting up Cron Jobs or scheduler

Setting up Cron Jobs or scheduler

What is cron job?

Wiki: https://en.wikipedia.org/wiki/Cron

Use of Cron in UltimatePOS

Cron Jobs are used for the following purposes:

  1. Automatic Backup: If you want to automate the backup process to take place every day.
  2. Subscription invoice: If you use a recurring invoice or subscription invoice feature in ultimatepos.
  3. WooCommerce Module: Used in WooCommerce module only if you want to enable auto-synchronization of orders from WooCommerce to UltimatePOS.
  4. Superadmin Module: Notify the user when the subscription gets expired.

Any other feature as mentioned throughout the documentation.

Setting up cron job

    1. You will find cron job command in Administrator Backup screen(available since V2.13) or WooCommerce module API settings or Superadmin Cron Jobs Menu.
      It will be in this format:
      * * * * * php /path_to_pos_folder schedule:run >> /dev/null 2>&1
    2. Login into your Cpanel or direct admin or similar server management portal and Go into Cron Jobs or scheduler menu.
      It will look something like this in cpanel:
    3. In the “Add New Cron Job” section, select:
      minutes = *
      Hour = *
      Day = *
      Month = *
      Weekday = *
      Command = php /path_to_pos_folder schedule:run >> /dev/null 2>&1
      Command is same as the command displayed above except remove all the * before it.
    4. Click “Add New Cron Job” Button and it will be added.

NOTE: only one cron job is required for all feature, don’t add it multiple times.

 

WooCommerce Cron Job Command

Superadmin Cron Job Command

Was this article helpful to you? Yes No