Answer the question
In order to leave comments, you need to log in
Long running python launched from php exec?
The script is written in python3, it is run from php with the exec, system, shell_exec function.. It doesn't matter, the problem is that it takes hundreds of times longer than when I run it directly from the terminal.
When launched from the terminal, it takes about 10 seconds, when launched from php, the www-data user, it runs for about half an hour .. I've been fighting for 2 days, I can't understand. Newbie in python. What could be the reason?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question