From: Kyle Schmitt Date: 2007-11-30T02:07:03+09:00 Subject: Re: how to know the platform ? You can get the sysutils package (http://sysutils.rubyforge.org/) for some quick and easy access to that sort of thing. The downside is almost all of them are very gems dependent, so its difficult to install them standalone. Sys/Admin (User & Group information, as well as some other stuff I don't use as much) Sys/Uname (Has some or all of the stuff you want, and is quite usefull) Sys/Host (just hostname stuff) Sys/Cpu --Kyle #Example follows. Enjoy! require 'rubygems' require 'sys/uname' require 'sys/host' Sys::Uname.release => "2.6.18-8.1.15.el5" Sys::Uname.uname => # Sys::Uname.sysname => "Linux" Sys::Uname.version => "#1 SMP Mon Oct 22 08:32:04 EDT 2007" Sys::Uname.nodename => "lxwrk1.trisalesco.com" Sys::CPU.processors => [#]