February 2018
Intermediate to advanced
340 pages
9h 43m
English
Getting to know the PID of the running process is useful. The PID could be used by OS utilities to find out the information about the process itself. It is also valuable to know the PID in case of process failure, so you can trace the process behavior across the system in system logs, such as /var/log/messages, /var/log/syslog.
This recipe shows you how to use the os package to obtain a PID of the executed program, and use it with the operating system utility to obtain some more information.
Read now
Unlock full access