R
R
Reality2020-12-10 21:55:48
PHP
Reality, 2020-12-10 21:55:48

How not to block a PHP script by calling a Bash script from it?

There is a PHP script that runs from cron once a minute, and sometimes, by condition, a bash script is called from it, which performs the operation for 5 minutes and blocks the main PHP script for all this time. I would like to somehow avoid such blocking. Tell me, what options are possible here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vincent1, 2020-12-10
Tester @Aoom

exec("nohup php script.php > script.log &");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question