Script - Scheduler

Материал из WiKi - UserSide

en | ru

In USERSIDE versions 3.11 and later

Requires adding a script to the system cron (/etc/cron.d/userside) to run every minute.

Example:

* * * * *   www-data   php /var/www/userside/userside cron > /dev/null 2>&1

In USERSIDE versions before 3.11

userside/script/script_cron.php is a script of internal scheduler ERP "UserSide", which allows the system to run a variety of tasks.

It is required to add the script to the system cron (/etc/cron.d/userside) to run every minute.

Example:

* * * * *   www-data   php /var/www/userside/userside3/script/script_cron.php > /dev/null 2>&1
* * * * *   www-data   php /var/www/userside/userside cron > /dev/null 2>&1

To prevent the script from outputting messages to the console when running - add "s" as a command line argument.

Example:

* * * * *   www-data   php /var/www/userside/userside3/script/script_cron.php s > /dev/null 2>&1