From: ara.t.howard@... Date: 2006-09-23T01:57:43+09:00 Subject: Re: discovering the OS On Sat, 23 Sep 2006, dc wrote: > hi list - > > just wondering if there is a way to find out which OS ruby is running on? > > for these type of: > > if (windows) > system "start file.html" > else if (mac) > system "open file.html" > end try this ruby -r rbconfig -r yaml -e' y Config::CONFIG ' -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei