Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Think about Loose Coupling
 
PerlMonks  

Re: set env var at compile time

by diotalevi (Canon)
on Jun 26, 2008 at 20:55 UTC ( #694279=note: print w/ replies, xml ) Need Help??


in reply to set env var at compile time

I'm guessing here but I think you have to satisfy ld.so and it reads from the process's C environment which is not updated by updating the perl variable %ENV. I see no problem with having a configuration file somewhere on disk but you'll need to write it in bash (or similar) and just make sure that invoking it is a part of your /etc/profile or how you invoke perl.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊


Comment on Re: set env var at compile time
Select or Download Code
Re^2: set env var at compile time
by SantaClaus (Initiate) on Jun 26, 2008 at 21:16 UTC

    Satisying ld.so makes sense, as does the failure of %ENV to update its environment. I wished for a Perl solution, but I suppose a shell script is better than hard coding the path. It's not really any better than just adding the 'env' to the crontab line, though, so I'll probably just hold my nose and go with that. Thanks for taking the time to respond.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-04-21 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls