morteza kavakebi
morteza kavakebi

Reputation: 1680

how to execute python script in PHP as a without waiting for completion?

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?

Upvotes: 0

Views: 975

Answers (1)

user7589098
user7589098

Reputation:

You can try:

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

It's for Linux.

Upvotes: 1

Related Questions