On Tue, Jul 14, 2009 at 3:11 PM, Michal Brzozowski<ruso...@poczta.fm> wrote:
> What's the best way to get the CPU usage from command line?

:) It's good that the literki author is interested in this, is he
insterested in coding some nice xshape applet ? :))))

To get CPU usage you may use /proc/stat while for memory usage
/proc/memstat, you may grab some snippets from:

http://svn.o-hand.com/view/matchbox/trunk/matchbox-panel/applets/mb-applet-system-monitor.c?rev=1307&view=markup

Regards

    Nicola

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to