W
W
web5talker12018-05-28 00:34:46
PHP
web5talker1, 2018-05-28 00:34:46

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 question

Ask a Question

731 491 924 answers to any question