Hi all,
I feel like an idiot for asking this but I just can't seem to get it. I'm trying to extract the current CPU load (not average) from a redhat box and put it into a variable in a shellscript.
I've tried various combinations of "top -b" and the like, but it's not working, I mean, I get the figures, but they are always the same (and therefore not accurate).
any thoughts?
I feel like an idiot for asking this but I just can't seem to get it. I'm trying to extract the current CPU load (not average) from a redhat box and put it into a variable in a shellscript.
I've tried various combinations of "top -b" and the like, but it's not working, I mean, I get the figures, but they are always the same (and therefore not accurate).
any thoughts?
Comment