From: Joel VanderWerf Date: 2008-04-12T14:28:03+09:00 Subject: Re: exec with environment? 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? This doesn't do what you want? ENV['foo'] = 'bar' exec "echo $foo" # ==> bar -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407