Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: ENV PATH didn't take effect

by Happy-the-monk (Abbot)
on Jun 07, 2013 at 06:03 UTC ( #1037588=note: print w/replies, xml ) Need Help??


in reply to ENV PATH didn't take effect

I am afraid I am not qualified for the windows support, but my best guess is, the system variables do not get propagated to all users as you suspect.

I think, that should be the normal behavior.

You can modify your own PATH variable in Perl through the %ENV hash.

$ENV{PATH} contains the PATH, and you can modify it.

Subsequent shells or cmd prompts invoked by your Perl script use that information.

Cheers, Sören

edit: strikethrough - wrong thought

(hooked on the Perl Programming language)

Replies are listed 'Best First'.
Re^2: ENV PATH didn't take effect
by anaconda_wly (Scribe) on Jun 07, 2013 at 06:32 UTC
    Thank you for the response. In fact, I changed the Path variable using Perl by TieRegistry. The system path do changed. But the click-opened command prompt didn't. If it didn't propagate to all users, I've already logged in as administrator, why I should right click opened "run as administrator" to see this change is beyond my understanding. I expect after I added the PATH env, all users can use it, no need to set it manually any more.

      The change, if made permanent, may take effect after a logoff/logon.

      The environment on disk is copied to your live environment on logon.

      Changing the config on disk does not followup in memory right away.

      Cheers, Sören

      (hooked on the Perl Programming language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037588]
help
Chatterbox?
[Corion]: marto: Naah, the main thing I'm unhappy about is that I'm angry about that situation at all instead of mostly ignoring it and rejecting/closing the incidents.
[Corion]: (well, and angry about the actors there, while I should simply ignore them)
[marto]: LanX++ asking the right questions :)
[Corion]: And I also have to talk to the technician implementing the export side of the change that this is not about them, and that maybe they should hold on to that changeset just in case the project comes back with a formally correct approach...
[Corion]: Naah - I think the "fasta" format should be familiar by now to the casual visitor of this site ;)
[Corion]: The rest would benefit from de-jargonizing. Maybe somebody versed in both, Perl and bioinformatics could write up a translation dictionary ;)
[marto]: I helped with some corrections to the Glasgow Uni Perl for Bioinformatics course, but didn't get time to do a full review. I've also patched some trivial problems with the bioperl based upon a question someone asked here.
[marto]: but I've never done any bioinformatics work, so don't know what people are talking about :P

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-08-17 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (285 votes). Check out past polls.

    Notices?