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. > > i thot this might work, but not... > > ENV[' ENV['RSWF_C'] = 1 # use c bindings'] = 1 > > > 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? No. Now, please tell us what problem you are trying to solve, rather than evaluate this approach to solving it. -- Paul Lutus http://www.arachnoid.com