Script - Scheduler: различия между версиями
Нет описания правки |
Нет описания правки |
||
Строка 9: | Строка 9: | ||
* * * * * www-data php /var/www/userside/userside cron > /dev/null 2>&1 | * * * * * www-data php /var/www/userside/userside cron > /dev/null 2>&1 | ||
== In versions | == In USERSIDE versions before 3.11 == | ||
''userside/script/script_cron.php'' is a script of [[Settings - Scheduler|internal scheduler]] ERP "UserSide", which allows the system to run a variety of tasks. | ''userside/script/script_cron.php'' is a script of [[Settings - Scheduler|internal scheduler]] ERP "UserSide", which allows the system to run a variety of tasks. |
Текущая версия от 19:07, 2 февраля 2024
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