#!/usr/bin/env php Usage: cron_run_jobs.php securitykey userlogin|'firstadmin' [cronjobid] The script return 0 when everything worked successfully. On Linux system, you can have cron jobs ran automatically by adding an entry into cron. For example, to run pending tasks each day at 3:30, you can add this line: 30 3 * * * /var/www/alternc/c/camille/dolibarr_sourire-paysans/dolibarr-12.0.2/scripts/cron/cron_run_jobs.php securitykey userlogin > /var/www/alternc/c/camille/dolibarr_sourire-paysans/dolibarr-12.0.2/documents/cron_run_jobs.php.log For example, to run pending tasks every 5mn, you can add this line: */5 * * * * /var/www/alternc/c/camille/dolibarr_sourire-paysans/dolibarr-12.0.2/scripts/cron/cron_run_jobs.php securitykey userlogin > /var/www/alternc/c/camille/dolibarr_sourire-paysans/dolibarr-12.0.2/documents/cron_run_jobs.php.log