View Single Post
  #1   (View Single Post)  
Old 18th October 2008
bsddaemon bsddaemon is offline
Slack Daemon
 
Join Date: Oct 2008
Posts: 35
Default How to check CPU state in non-interactive mode?

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
Reply With Quote