Re: Env variables readable by an application
- From: chas.owens@xxxxxxxxx (Chas. Owens)
- Date: Fri, 28 Dec 2007 02:39:36 -0500
On Dec 28, 2007 2:24 AM, Travis Thornhill <madslashers2002@xxxxxxxxx> wrote:
snip
Is there a way to do this? In other words, is there a way tosnip
set env variables that ANY user and ANY application can see?
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.
* that is what it stands for after all.
** http://search.cpan.org/dist/IPC-SharedCache/SharedCache.pm
*** http://search.cpan.org/search?query=IPC
.
- Follow-Ups:
- Re: Env variables readable by an application
- From: Travis Thornhill
- Re: Env variables readable by an application
- References:
- Env variables readable by an application
- From: Travis Thornhill
- Env variables readable by an application
- Prev by Date: Env variables readable by an application
- Next by Date: Re: Env variables readable by an application
- Previous by thread: Env variables readable by an application
- Next by thread: Re: Env variables readable by an application
- Index(es):