0

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?

morteza kavakebi
  • 1,443
  • 3
  • 17
  • 38
  • 1
    Possible duplicate of [Is there a way to use shell\_exec without waiting for the command to complete?](http://stackoverflow.com/questions/1019867/is-there-a-way-to-use-shell-exec-without-waiting-for-the-command-to-complete) – akond Feb 26 '17 at 18:05

1 Answers1

1

You can try:

exec('python StartDeploy.py > /dev/null &');

It's for Linux.