How to terminate a python subprocess launched with shell=True
How to terminate a python subprocess launched with shell=True Question: I’m launching a subprocess with the following command: p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) However, when I try to kill using: p.terminate() or p.kill() The command keeps running in the background, so I was wondering how can I actually terminate the process. Note that when I …
Total answers: 11