Python Forum
Visiting invisible folders in /proc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Visiting invisible folders in /proc
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Generate lists of devices and partitions from /proc/partitions? DachshundDigital 1 776 Feb-28-2023, 10:55 PM
Last Post: deanhystad
  sub-folders in folders from text line jenost 1 1,577 Mar-31-2020, 07:16 AM
Last Post: ndc85430
  Problems parsing /proc folder anddontyoucomebacknomore 2 2,563 Mar-06-2019, 09:16 PM
Last Post: DeaD_EyE
  execute a SQL stored proc within PYTHON PYTHONDUDE 3 9,503 Mar-21-2018, 04:15 PM
Last Post: nilamo
  proc communicate not exiting on python subprocess timeout leoonardoo 0 3,790 Sep-13-2017, 09:54 AM
Last Post: leoonardoo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020