4 Sep
2019
4 Sep
'19
09:12
On 04/09/2019 11.07, Basil Chupin wrote:
On 4/9/19 6:38 pm, Carlos E. R. wrote:
Hi,
Can I find the percent of cpu load for a process inside a script?
At worst, I can find it out from "top", but I wonder if there is a more direct way.
I'm looking at "/proc/21500/stat" or "/proc/21500/statm", but I have no idea what each value is, where are those virtual files documented.
Won't KSysGuard do this for you?
A GUI? Nope. I want the value inside a script, to do things with it. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)