Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I set env. Variables from Perl with shell script

by JavaFan (Canon)
on May 04, 2009 at 13:22 UTC ( [id://761719]=note: print w/replies, xml ) Need Help??


in reply to How do I set env. Variables from Perl with shell script

It depends on your OS. Probably the easiest (as, requires the fewest lines of code changes) is to run it on VMS, as that OS allows child processes to update the environment variables of the parent.

If you are running a Unix of a Windows flavour, you may have to result to trickery: for instance, by creating a wrapper (shell) program that sources your existing shell script, then executes your Perl program.

  • Comment on Re: How do I set env. Variables from Perl with shell script

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2025-06-22 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.