I've been trying to kill a process but all my options give me a Windows Access Denied Error.
I open the process(a python script) through test= subprocess.Popen([sys.executable, "testsc.py"])
and I want to kill that process.
So far, I've tried os.kill(pid, signal.SIGILL)
, os.kill(pid, 9)
, test.Terminate()
and simply test.kill()
. All of these give me the error.
I am using Python 2.7.1.4 on a Windows 7 x86 machine. I would appreciate the help! Thanks!