From: Alex DeCaria Date: 2010-02-21T21:25:19+09:00 Subject: Re: Running two versions of Ruby - Lessons Learned Dane Jensen wrote: > On Feb 20, 2010, at 5:50 PM, Alex DeCaria > wrote: >> - For thos few programs that need to run under Ruby 1.8 I wrote a >> simple >> ruby script that calls the Kernel.system method: >> >> system( "C:\Ruby\bin\rubyw.exe my_Ruby1.8_program.rb" ) > > You should use exec instead. system runs the script as a sub process > with your wrapper just sitting in memory waiting for it to exit. exec > replaces your wrapper with the called script. > > -Dane Thanks. I was wondering what the difference between system and exec was. That helps. --Alex -- Posted via http://www.ruby-forum.com/.