`top -n 1` will spit out one iteration of top that you could then
parse. 

On Wed, Jul 14, 2004 at 02:05:07PM -0400, Tal Cohen wrote:
> Hi All,
> 
>      I need to write a script that will return how much memory (RAM) is on a
> system as well as how much of it is being used. Can anyone assist?
> 
>  
> 
> Thanks,
> 
> Tal Cohen
> 
> _______________________________________________
> Boston-pm mailing list
> [EMAIL PROTECTED]
> http://mail.pm.org/mailman/listinfo/boston-pm
> 

-- 
     www.suave.net - Anthony Ball - [EMAIL PROTECTED]
        OSB - http://rivendell.suave.net/Beer
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Live as you will have wished to have lived when you are dying.

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to