From: James Bracy Date: 2008-04-26T01:57:40+09:00 Subject: Re: determing what os is running ------=_Part_2310_20928714.1209142660520 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline RUBY_PLATFORM.downcase =~ /win32/ will tell you if it is a windows, don't know about the others though. James On Fri, Apr 25, 2008 at 11:40 AM, cb wrote: > I need to execute commands differently based on the underlying > platform. I don't need it down to the patch level or anything like > that -- just basic stuff. > > How do I test whether I'm runnnig on Windows, Linux, or Mac? > > Thanks in advance. > > CB > > ------=_Part_2310_20928714.1209142660520--