in reply to Using Perl to detect RAM amount

If you're going to reboot, anyway, use a Knoppix boot CD.

I don't have one handy to test with, but Linux normally displays the installed RAM during the boot process.

If not, use dmesg, once the machine has started up, to see the installed RAM

If that doesn't work for some reason, use the top command; available memory is discussed on the fourth line of the header.

--
TTTATCGGTCGTTATATAGATGTTTGCA

Replies are listed 'Best First'.
Re: Re: Using Perl to detect RAM amount
by Tommy (Chaplain) on Jan 07, 2004 at 01:12 UTC

    That's true, http://knoppix.org/ is pretty cool. I just wanted to see if I could do it with Perl. Thanks for the tip. I forgot about using knoppix for that. Seems I only think of it when I need to reset somebody's root password on a linux box.

    --
    Tommy Butler, a.k.a. TOMMY