[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

hardware detection

Oliver Fox

4/14/2008 9:13:00 PM

hi all,
does the stock ruby (1.8) library have any classes that i can use to
detect the current systems' cpu type, and number of cpu's etc?
i'm hoping for something portable across linux, mac, bsd etc, but cant
find much.

thanks.
--
Posted via http://www.ruby-....

1 Answer

Daniel Berger

4/14/2008 9:19:00 PM

0

On Apr 14, 3:12=A0pm, Paul Fox <olifoxp...@googlemail.com> wrote:
> hi all,
> does the stock ruby (1.8) library have any classes that i can use to
> detect the current systems' cpu type, and number of cpu's etc?
> i'm hoping for something portable across linux, mac, bsd etc, but cant
> find much.

Nothing stock, but there's sys-cpu.

gem install sys-cpu

Regards,

Dan