in reply to Using Perl to detect RAM amount

This works nice on linux:
#!/usr/bin/perl use Linux::MemInfo; %hash = get_mem_info(); foreach(sort keys %hash) { print "$_ = $hash{$_} \n"; }

Replies are listed 'Best First'.
Re: Re: Using Perl to detect RAM amount
by Tommy (Chaplain) on Jan 06, 2004 at 21:50 UTC
Re: Re: Using Perl to detect RAM amount
by dwhite20899 (Friar) on Jan 27, 2004 at 13:32 UTC
    I'm glad this topic came up, because I have a similar need.

    What I don't see yet though, is a Mac OS X-based solution. I'm not much of a Mac guy, so I'm still digging around, but if anyone has an idea, I'd love to hear it.

    Doug

    d'oh! one more day of digging and I found the system_profiler -detailLevel -2 command in OS X 10.3.