Find the answer to your Linux question:
Results 1 to 4 of 4
How do I write a perl script that read my system hardware component like motherboard, cpu, memory, etc...? It's running under linux. I can write PERL but anyone can guide ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Location
    Tacoma, Washington
    Posts
    8

    System hardware component

    How do I write a perl script that read my system hardware component like motherboard, cpu, memory, etc...? It's running under linux. I can write PERL but anyone can guide me what command or where I can check these components in linux unit please? I am a newbie to linux.

    Thanks,
    nodopro

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    you will find the virtual filesystem residing under the /proc directory very satisfying. The entries there can be read like a normal text file can be read.

    The lspci command is informative as well.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Location
    Tacoma, Washington
    Posts
    8
    Thanks for your reply GNU-Fan. If you don't mind be more specific which file is containing what information and how do I read those virtual file? Again, I am very newbie to linux. I know the unix environment as user but not admin.

    Thanks,
    nodopro

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Quote Originally Posted by nodopro View Post
    Thanks for your reply GNU-Fan. If you don't mind be more specific which file is containing what information and how do I read those virtual file? Again, I am very newbie to linux. I know the unix environment as user but not admin.

    Thanks,
    nodopro
    try
    Code:
    man proc
    ... you will find lots of useful info & can google for additional information if required

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...