It sounds like a stupid question, but I couldnt work out how to extract the CPU state info from top.
If I run top with -b switch, it will send output to the terminal, but all CPU state info is omitted
Code:
73 processes: 2 running, 71 sleeping
Mem: 245M Active, 490M Inact, 201M Wired, 44M Cache, 110M Buf, 3708K Free
Swap: 2047M Total, 312K Used, 2047M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
Please shed some light