XP is just a number | |
PerlMonks |
Re: Using Perl to detect RAM amountby Abigail-II (Bishop) |
on Jan 06, 2004 at 08:11 UTC ( [id://319040]=note: print w/replies, xml ) | Need Help?? |
Linux: cat /proc/meminfo. On Solaris, one can dump the hardware device tree - this will include the memory.
(I can't remember the command). IIRC, on HP-UX, one of the
*scan commands will show the physical amount of memory.
Typically, after a reboot, dmesg will show that info there
somewhere as well. Of course, none of this is very platform
independent.
Abigail
In Section
Seekers of Perl Wisdom
|
|