How to find what process are using Swap
/proc/meminfo – This file reports statistics about memory usage on the system. It is used by free to report the amount of …
check process uptime
Simple script to get any linux process uptime.
It could have been done using the /proc/PID too.
Here is the code:
#!/bin/bash # Script to get a process uptime, alerts…
script to monitor cpu usage by process
A bash script to get the CPU usage by process
usage:
nohup ./check_proc bwengine 70 &
bwegnine is the process name we want to monitor
70 is to log only …