Shell commands to find available memory

Richard Gaskin ambassador at fourthworld.com
Tue Aug 14 14:26:48 EDT 2012


Bob Sneidar wrote:
 > On Aug 14, 2012, at 10:55 AM, Richard Gaskin wrote:
 >
 >> I could use "top -l1 -n0" to get just the overview stuff from which
 >>
 >> I can parse out the memory info, but it's not a very fast command to
 >> execute, taking more than a second to return the result to LiveCode.
 >
 > When I execute this directly from the shell the result is almost
 > instantaneous.

But how long does it take when you try it in the LiveCode Message Box:

put the millisecs into t; get shell("top -l1 -n0"); put the millisecs - 
t && it


--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the Use-livecode mailing list