Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psutil
- process_name = "python" # here write process name
- for proc in psutil.process_iter():
- if proc.name() == process_name:
- print(proc.pid)
- # https://pastebin.com/u/TTpocToXaKep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement