Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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

by ikegami (Pope)
on Oct 13, 2011 at 16:45 UTC ( #931315=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

While environment variables are inherited from parent to child like in Linux, a batch files are run more like source foo.bat than cmd /c foo.bat when possible (when the parent is cmd).

Replies are listed 'Best First'.
Re^3: Issue with env variables set through dos batch
by moritz (Cardinal) on Oct 13, 2011 at 17:08 UTC

      The parent is perl, which can't execute batch files, so a cmd is indeed launched here.

      I wasn't so much correcting you as explaining that the behaviour is different than explained when the batch file is run from the prompt.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://931315]
[marto]: I think you can do what you want without too much hassle, but yeah, please try and let me know if it works well :)
[marto]: sadly I've still not remembered the name of that x86 all in one we discussed
[Corion]: marto: Heh - I looked at the Intel things and they were all at EUR 80 or upwards, and that's a bit too much (or rather, for that money, I'd look for a NAS already)
[marto]: click bait marketing is making it harder to find stuff I can't remember based upon a few terms :(
[Corion]: :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-01-17 15:21 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (201 votes). Check out past polls.