command line cpu utilization
how would one take the mpstat command, and have the idle time subtracted from 100.... then dump said number to a file or preferably print it to command line?
i want my cpu utilization in non robot time and in non robot /proc/loadavg
thats right i want total cpu utilization % printed in bash (why doesnt nix have this in the proc folder?) (why doesnt mp stat have a flag to show total cpu usage and not give me the run around with % kernel is using % user is using % sys % nice??????)
i asked in another thread but they told me to forward x on an xless system. i can see several ways to display cpu utilization but none answering the question and google totally gives the same answer they gave in the other thread.
sar is broken on this machine, and it is non existent on the other.
sar is now broken on the linux from scratch machine also, and mpstat is running strong on it also =)
with this question, i would like to add for SMP users such as myself.... how would one do that same % but instead of system total, %'s run on individual cores.
much thanks LQ, and im one of the top folders on the folding@home team now =)