On Mon, Mar 26, 2012 at 8:57 AM, John Doe jdmls@yahoo.com wrote:
Indeed, I looked too fast and missed the IDs... So, why not just something like this: dump-acct /var/account/pacct | awk -F| ' { total_cpu += $4; cpu[$5] += $4; total_ram += $7; ram[$5] += $7 } END { for (x in cpu) { print x" "int((cpu[x]*100)/total_cpu)"% "int((ram[x]*100)/total_ram)"%"; } } ' Or just 'sa -m'?
Thanks, yeah I can definitely do that - just wanted to see if there was something already out there which had a few bells and whistles.
But that raw data above should be good enough for my use