From: badcherry Date: 2007-02-25T22:50:09+09:00 Subject: Re: Ruby subprocess On Feb 24, 10:59 pm, ara.t.how...@noaa.gov wrote: > > require 'rbconfig' > > def which_ruby > c = ::Config::CONFIG > File::join(c['bindir'], c['ruby_install_name']) << c['EXEEXT'] > end > > ruby = which_ruby > > exec ruby, 'file.rb' > > probably won't work on windows since the one-click breaks (or used to break) > rbconfig. > This will work for now, but didn't test it on windows yet. Thanks, much.