Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to for doing some tasks at specific intervals with every time.
A synchronization task from PrestaBay module require a script to be run periodically.
To run a script periodically module require to set up cron job. Job scheduler that run update script from time-to-time.
Usually hosting have CPanel, DirectAdmin or other hosting panel that already include cron configuration service. If your hosting not support such feature your can use third-party web cron service (for example http://mywebcron.com or http://www.setcronjob.com)
Alternative good paid solution it’s http://easycron.com
Syntax of cronjob has following:
* * * * * scriptname
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
For specify cron job for PrestaBay module your need to set construction like following:
*/5 * * * * wget -q –spider http://yourstoreurl.com/modules/prestabay/cron.php
Where “yourstoreurl.com” – you store url.
This command will execute automatic job every five minutes.
As alternative you can set cron job with command
*/5 * * * * php -f /pathtoyourstoreinstallation/module/prestabay/cron.php
Where “pathtoyourstoreinstallation” is full path to your store in hosting file system (not web address)