> Right. Have FreePascal run e.g. 'ruby wrapper.rb > realprogram.rb args' and then wrapper.rb unsets the var and > forks to run realprogram.rb. I think it should work. It's close, but not close enough. We have to work around the fact that safe mode 1 means "Can't start processes from $PATH if any directory in it is world-writable." That's done with: ruby -r wrapper.rb -T1 empty.rb realprogram.rb args See my previous (in time) posting. Thanks. gegroet, Erik V.