C
C
cyberlain2021-03-02 17:11:56
1C-Bitrix
cyberlain, 2021-03-02 17:11:56

How to start the execution of an arbitrary task in Bitrix at a certain time with a certain interval?

In /home/bitrix/ext_www/sitename/bitrix/php_interface added a php file discounts with a single line for sending a letter (not a letter should be sent at all, but nevertheless) after which the line in crontab.cfg

mail('[email protected]', 'Удалось включить');

*/1 * * * * /usr/bin/php -f /home/bitrix/ext_www/sitename/bitrix/php_interface/discounts.php

assuming that now it will start sending an email to me every minute

but nothing works... Explain why

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2021-03-02
@babarun

How to start the execution of an arbitrary task in Bitrix at a certain time with a certain interval?

Bitrix has a whole functionality called Agents for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question