Script - Scheduler: различия между версиями

Материал из WiKi - UserSide
(Новая страница: «en | ru»)
 
Нет описания правки
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
[[Script_-_Scheduler|en]] | [[Скрипт_-_Планировщик|ru]]
[[Script_-_Scheduler|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 [[Settings - Scheduler|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

Текущая версия от 19:07, 2 февраля 2024

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