Answer the question
In order to leave comments, you need to log in
Another question about cron and php exec?
I'll try to describe it like this:
there is a crontask.php
// читаю данные из базы и при соблюдении условия вытаскиваю одно значение
// это значение $command является командой для исполнения
// ставлю статус команды - 1 - исполняется, заношу эту 1 в БД
exec($command);
// далее я меняю статус этой команды в БД на 2
Answer the question
In order to leave comments, you need to log in
there were problems with the rights of the user from which the cron was launched, there were not enough rights to write.
I understand you want to make a task queue based on cron? Maybe you should look towards RabbitMQ/ActiveMQ?
1) Log into the console as root
2) Go to the folder /
3) Run php <script-name>
After that, look for errors
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question