J
jackster the jackle
I need to set the following windows environment variable at the
beginning of my script:
set http_proxy=http://10.1.1.1:8080
This works from the command line if I run this command from the CLI
right before I run my script but when I try to shell out and the run
command like this from my ruby script:
`set http_proxy=http://10.1.1.1:8080`
The environmental variable never gets set.
What is the best way to set an environmental variable in Windows from
ruby?
thanks
jack
beginning of my script:
set http_proxy=http://10.1.1.1:8080
This works from the command line if I run this command from the CLI
right before I run my script but when I try to shell out and the run
command like this from my ruby script:
`set http_proxy=http://10.1.1.1:8080`
The environmental variable never gets set.
What is the best way to set an environmental variable in Windows from
ruby?
thanks
jack