I'm trying to execute a python script using php with an exec command like this:
exec("python /address/to/script.py");
I don't need the script to run to completion, so after it does what I need, I call sys.exit()
from within it. Execution is passed back to the php script, which is great, however the python process is still running. I can see it in my server's process list. Is there more that's required to fully kill it?
Additional Info
The python script was written by a third party.
I know very little about python, just enough to add the
sys.exit()
call.