python - Get process name by PID -
this should simple, i'm not seeing it.
if have process id, how can use grab info process such process name.
under linux, can read proc filesystem. file /proc/<pid>/cmdline
contains commandline.
this should simple, i'm not seeing it.
if have process id, how can use grab info process such process name.
under linux, can read proc filesystem. file /proc/<pid>/cmdline
contains commandline.
Comments
Post a Comment