there is a python script
StartDeploy.py
and i want to run this file from PHP without waiting for it's completion.
what can i do?
asked Feb 26, 2017 at 18:00
morteza kavakebi
1,6803 gold badges19 silver badges40 bronze badges
-
1Possible duplicate of Is there a way to use shell_exec without waiting for the command to complete?akond– akond2017年02月26日 18:05:35 +00:00Commented Feb 26, 2017 at 18:05
1 Answer 1
You can try:
exec('python StartDeploy.py > /dev/null &');
It's for Linux.
answered Feb 26, 2017 at 18:05
user7589098
Sign up to request clarification or add additional context in comments.
Comments
lang-php