0

in a python 3.4 script, I've opened a process this way:

 myProcess = subprocess.Popen([sys.executable, pythonprocess.py, args], shell=False)

How can I kill this process?

jul
  • 467
  • 3
  • 5
  • 12
  • 1
    possible duplicate of [How to terminate a python subprocess launched with shell=True](http://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true) – alexwlchan May 06 '15 at 07:50
  • @alexwlchan, it's not a duplicate. jul is using `shell=False`. So the child process can be killed simply using `myProcess.kill()`. – Eryk Sun May 06 '15 at 17:19
  • @eryksun oops, how did I miss that. Not a dupe then my bad. – alexwlchan May 06 '15 at 17:31

0 Answers0