Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Issue with env variables set through dos batch

by akrrs7 (Acolyte)
on Oct 13, 2011 at 16:10 UTC ( #931298=note: print w/ replies, xml ) Need Help??


in reply to Re: Issue with env variables set through dos batch
in thread Issue with env variables set through dos batch

Very true...that is exactly the behavior I'm observing in the windows cmd window. How do I get the env. variables to stay put ? Running the perl script from a batch script is not right now an option for me.


Comment on Re^2: Issue with env variables set through dos batch
Re^3: Issue with env variables set through dos batch
by Marshall (Prior) on Oct 15, 2011 at 15:55 UTC
    In general if you set ENV variables in a shell and then launch a program from that shell's environment, the program will inherit the environment variables.

    I you want some ENV variables to apply to any command line window, Go to Control Panel|System|Environment Variables, change them and then set them "to apply to all future command line windows". This is for example, how you would set "PATH" to be persistent.

    If this is a "one off" thing, then I would pass special settings as part of @ARG.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://931298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-12-21 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls