Monitor processes in Linux with custom script
Why use tools when you can create your own.
When you run
px aux we can see multiple status.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
We will try to gather few data from here by reading the
proc files in linux system:
- In Linux, Each process is given a unique PID.