Per Jessen wrote:
Carlos E. R. wrote:
On 04/09/2019 11.08, Per Jessen wrote:
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.
run that process with 'time' ?
Nono. I want, in a script, to find the cpu load value of a different program, at many times.
Yes, so run _that_ program with 'time'.
I.e. inside your script: #!/bin/bash do this do that time do more do something else do something entirely different. But I see you said "percent of cpu load" - what is that good for? -- Per Jessen, Zürich (18.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org