Memory and CPU Usage Script

Richard Gaskin ambassador at
Fri Jun 6 20:33:41 EDT 2014

Kay C Lan wrote:

 > I wanted to know what was using my memory and CPU and using top
 > was always going to place itself in the list.  This is understandable
 > as top is active whilst the id, ps, and vm_stat are all static, but I
 > notice that even Activity Monitor with all it's bells and whistles
 > uses significantly less CPU than top.

You can run top just once with:

top -bn1

But even more fun, you can take a trip back to 1997 to read Scott 
Raney's article in Linux Journal about using LiveCode (back then called 
"MetaCard") to build a GUI for top:

  Richard Gaskin
  Fourth World
  LiveCode training and consulting:
  Webzine for LiveCode developers:
  Follow me on Twitter:

More information about the use-livecode mailing list