From: Daniel Berger Date: 2008-10-15T04:25:45+09:00 Subject: Re: Get system name On Oct 14, 12:03 pm, The Higgs bozo wrote: > Victor Goff wrote: > > Check out the Ruby Constants... PLATFORM could be one. > > The constant is RUBY_PLATFORM. I recommend against this because of JRuby (and probably IronRuby). JRuby, for example, will return "java" for RUBY_PLATFORM. > If more info is needed, check the output of this, > > require 'rbconfig' > require 'pp' > pp Config::CONFIG There you go. Take a look at Config['host_os']. Regards, Dan