thanks for the help everyone.
The answer is obvious, and I provided it.
indeed you did! you remind me of a very stoic colleague
the background is this:
we have a server written in ruby
when it starts up it looks for some environment variables for which
mode to run in (eg using custom c extensions, or just pure ruby)
I have a completely different ruby script (for benchmarking)
so, the benchmark script needs to communicate with the server, and the
way things are setup now, this would be via environment vars.
bench.rb >> sets ENV[‘FLAG’]
calls server.rb to start up (via a system() call currently)
server.rb >> on startup, looks for the FLAG env var and decides how to
I tried to do some research on what exactly ENV is, within ruby, but
didnt get much out of google…its a bit too common of a word.
if i just call system() to set an env flag,
then export it
will it then be available to other processes?
any more info on ENV would also be helpful
(or where to look - i find the ruby docs really awful)
Nothing known about ENV
thanks for any help!
On 25/11/06, El Gato [email protected] wrote:
is this available to all other scripts called from this
Gee, I thought it was quite obvious that he was trying to export a shell
David "DC" Collier
+81 (0)80 6521 9559