From: Paul Lutus Date: 2006-12-04T04:40:13+09:00 Subject: Re: How to get operating system type info Dao Shi wrote: > Hi Guys, > > I'm writing a software building script in Ruby for Unix and Windows. > > I want to know the type of the platform that my script is running on - > whether it's Windows, Linux or MacOSX. I need to do something special > for different os. > > Is there any way to get this without hacking by myself? Google gave me > nothing useful. puts RUBY_PLATFORM -- Paul Lutus http://www.arachnoid.com