From: ara.t.howard@... Date: 2006-11-25T08:13:37+09:00 Subject: Re: setting environment variables... On Sat, 25 Nov 2006, Paul Lutus wrote: > dc wrote: > >> hi - >> >> i have a ruby command line script, and i want to set/export an >> environment variable thats available to other various shell scripts >> that are called by this ruby... > > You can't do that. Each call to "system()" launches a new shell interpreter, > and they don't share environments. > >> can someone tell me how to do this? > > 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? kind regards. -a -- if you want others to be happy, practice compassion. if you want to be happy, practice compassion. -- the dalai lama