Re: Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread Rhodri James
On 13/07/17 16:42, sanky8...@gmail.com wrote: I have created one thread in python, and that thread is running in infinite loop, but when I was trying to kill a process by making use of subprocess.call("my ps command") Its not actually working Here is the code, import threading import subp

Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread sanky8793
I have created one thread in python, and that thread is running in infinite loop, but when I was trying to kill a process by making use of subprocess.call("my ps command") Its not actually working Here is the code, import threading import subprocess def B(): while True: cmd="ps