From: Paul Lutus Date: 2006-11-25T08:25:13+09:00 Subject: Re: setting environment variables... ara.t.howard@noaa.gov wrote: / ... >> You cannot do this. > > why not? > > harp:~ > ruby -e' ENV["VAR"] = 42.to_s; system "env|grep VAR" ' > VAR=42 > > the environment is definitely shared. did i mis-understand? My reply was based on his diagrammed effort to use one system call to refer to another system call: >> if i use (in ruby app:) >> system(" RSWF_C=1; export RSWF_C" ) >> is this available to all other scripts called from this >> master ruby script? The answer is obvious, and I provided it. If instead his goal can be met by setting ENV variables within Ruby, then that solves the problem. But before suggesting this, I asked that the OP first explain what he is trying to do. -- Paul Lutus http://www.arachnoid.com