Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 contemplating the Monastery: (3)
As of 2024-06-14 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.