From b2ae192056d3819ecea3bb2bdf0fe681ef23d9eb Mon Sep 17 00:00:00 2001 From: PYDT <85057800+87owo@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:56:05 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9588a89..0b981aa 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,9 @@ print(info) ``` ## Process Detect + +Show the new process name, file path, cmd line, pid + ``` import psutil, time @@ -108,6 +111,7 @@ def proc_info(): name, file, cmd = p.name(), p.exe(), p.cmdline() print(f"Name: {name}") print(f"File: {file}") + print(f"Pid: {p.pid}") print(f"Cmd: {cmd}") except: pass