Z
Z
Zikdelk2022-04-16 22:33:20
PHP
Zikdelk, 2022-04-16 22:33:20

How to put a php file on the cron that is on the local Mac os - MAMP?

Where is this code to register and am I writing correctly?
* * * * * /Applications/MAMP/bin/php/php7.4.21/bin/php /Applications/MAMP/htdocs/bitrix/modules/main/tools/cron_events.php Nothing works on

the command line.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheAndrey7, 2022-04-16
@TheAndrey7

It will work in the command line if you remove the asterisks at the beginning, which are the schedule for cron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question