Apr-22-2019, 06:13 AM
(This post was last modified: Apr-22-2019, 06:13 AM by anddontyoucomebacknomore.)
When I use the
ps
command in termux on my android it displays a path corresponding to the processes (along with PID,PPID,etc). I believe this is the exe path of the process and it is this path that I'm refering to. I would like to know if there is a way to code a python program that automatically(and continuously) kills the processes that spawn with this exe. I have the pathlib installed in my QPython3.6 I thought about doing an infinite loop and parsing proc in search of the exe path. But I'm not sure if it would work or be fast enough to not slow the phone (the process I want to kill respawns instantly every time I kill it)