Tal Cohen wrote: 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 a >> system as well as how much of it is being used. Can anyone assist? >> Anthony R. J. Ball wrote: > > `top -n 1` will spit out one iteration of top that you could then > parse. >
Yeah, I thought of that. I was hoping for a platform independent mechanism. If not, then I can use this type of methodology, but how do I account for Windows based machines?
You could either use `mem` or the Win32::SystemInfo module on windoze.
If you can access /proc/meminfo on the linux (you didn't specify..) boxes you can read that instead of spawning a process.
Cheers,
Mike _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm