|
|
| No such thing as a small change | |
| PerlMonks |
Re: grabbing dmidecode memory data - there's got to be a better wayby afoken (Parson) |
| on Dec 28, 2012 at 19:10 UTC ( #1010733=note: print w/ replies, xml ) | Need Help?? |
|
I prefer NOT to call external utilities writing "human readable" data. The output formats often change without announcement, they are not properly defined, and some stupid tools insist on doing their own pager or wrap lines. So, my first approach is to search CPAN for DMI (after all, dmidecode just reads some file(s) in /sys or /proc): The first one seems to read the DMI data directly (from /dev/mem, unfortunately, so it might need root privileges, whereas a tool reading from sysfs could live without root privileges), the other one attempts to parse dmidecode output. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||