From: "ara.t.howard" Date: 2008-04-12T14:15:03+09:00 Subject: Re: exec with environment? On Apr 11, 2008, at 10:57 PM, Ian Peters-campbell wrote: > I am running a Ruby script which needs to set some environment > variables > and then execute non-Ruby programs through Linux and pass the modified > environment to the new processes. It doesn't look as though I can do > this with 'exec', is there a way to do this with existing Ruby > functionality? > -- > Posted via http://www.ruby-forum.com/. > require 'systemu' systemu 'foobar', :env => hash the session and open4 gems also both have this functionality. systemu is cross platform, however. cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama