Re: Env variables readable by an application





"Chas. Owens" <chas.owens@xxxxxxxxx> wrote:
No, environmental variables are a per-process thing. Child processes
inherit the state of their parent's environment, but that is it. If
you need inter-process communication you have to use IPC*, a file, a
database, or some other external resource. Take a look at
IPC::SharedCache** or one of the other IPC modules*** on CPAN.
Depending on your needs a simple file might suffice though.

Unfortunately you're right. I waded through perldocs and found that there is no way I can set env variables that other processes can access. But using a file will actually be easier. Thanks for the assistance.

- Travis.



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Relevant Pages

  • Re: SETing environmental variables permantly
    ... | That's not via the command line, ... Anything you would do would be a daughter process and all child processes would inherit the ... Environmental variables but the parent process won't. ...
    (microsoft.public.windowsxp.general)
  • Passing user credentials to child processes
    ... These child processes need to inherit the user-based ... authentication results from the parent process? ... child processes up to spoofing the credentials. ...
    (comp.lang.java.programmer)