Changes

m
no edit summary
Line 34: Line 34:  
* The URL to check and launch qualified cron jobs: http://mydolibarradress/htdocs/public/cron/cron_run_jobs.php?securitykey=xxxxxxxxxxxxxxxxxxxxxxxx&userlogin=admin
 
* The URL to check and launch qualified cron jobs: http://mydolibarradress/htdocs/public/cron/cron_run_jobs.php?securitykey=xxxxxxxxxxxxxxxxxxxxxxxx&userlogin=admin
 
* The URL to check and launch a specific job by its job id : http://mydolibarradress/htdocs/public/cron/cron_run_jobs.php?securitykey=xxxxxxxxxxxxxxxxxxxxxxxx&userlogin=admin&id=cronjobid
 
* The URL to check and launch a specific job by its job id : http://mydolibarradress/htdocs/public/cron/cron_run_jobs.php?securitykey=xxxxxxxxxxxxxxxxxxxxxxxx&userlogin=admin&id=cronjobid
 +
 +
== External activation of the module ==
 +
The module need to be externally activated each 5 minutes.
 +
 +
Depending on the environment where Dolibarr is running, the procedure to be followed is different.
 +
 +
=== Unix Environment ===
 +
On Unix environment you should use the crontab entry to run the command line each 5 minutes
 +
 +
=== Windows Environment ===
 +
On Windows, you have to create a new task in the Windows Task Scheduler.
 +
 +
* '''General''': don't forget to check "Run with maximum permissions".
 +
* '''Trigger''': Choose according to the use of your PC
 +
* '''Action''':
 +
Select "Start a program".
 +
Then put in Program/Script: C:\wamp64\bin\php7.3.12\php.exe
 +
And in Add arguments: -f C:\wamp64\wwww\dolibarr\scripts\cron\cron_run_jobs.php xxxxxxxxxxxxxxxx admin
 +
 +
With 'xxxxxxxxxxxxxxxx' is the security key that you will find in the parameters of the scheduled jobs module, and 'admin' is the name of your session.
 +
 +
The path indicated may be different depending on the installation and software version.
 +
This task will execute a command in windows to execute the php, then launch the planned work in progress of dolibarr
676

edits