Python Forum

Full Version: Visiting invisible folders in /proc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, my last question was perfectly answered. Now I need a bit more help: I found out there are process in the /proc folder in android that are invisible (whose PID can't be seen from ps or even a file explorer) and I wanted to kill a bunch of these processes in one shot with a Python code, so I want to do something like
count = 0
        while count < 10:
             count += 1
             p = psutil.Process(pid+count)
             p.kill() 
but again it shows that proc is read only, maybe the os lib can help me