Re: When to use Environment Variables?
From: Norm Dresner (ndrez_at_att.net)
Date: 02/24/04
- Next message: Mark: "Re: When to use Environment Variables?"
- Previous message: John Hasler: "Re: confused about the Server / Client Model of XFree"
- In reply to: Mark: "When to use Environment Variables?"
- Next in thread: Mark: "Re: When to use Environment Variables?"
- Reply: Mark: "Re: When to use Environment Variables?"
- Reply: LEE Sau Dan: "Re: When to use Environment Variables?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Feb 2004 01:41:21 GMT
"Mark" <mark_2811nospam@excite.com> wrote in message
news:FGu_b.117$mx4.3945@nnrp1.uunet.ca...
> Hi,
>
> I'm developing an application (embedded) that needs some configuration
> setting to be loaded on startup. The way I've usually done this before is
a
> custom formatted configuration file that the applications reads on
startup.
> I'm wondering if using the environment variables would be a better way?
> When are environment variables preferred over a configuration file?
>
> I'd like most settings to be loaded one time at startup, but also have
some
> settings that can be changed during runtime, without stopping and
restarting
> the application. Is this something that environment variables can help me
> to do?
>
No. As I understand it, a program receives a copy of the current
environment when it starts. Any subsequent changes will not be reflected in
a running program. But you could use shared memory and have a utility
program which can read/write data into and from it to communicate with the
running program
Norm
- Next message: Mark: "Re: When to use Environment Variables?"
- Previous message: John Hasler: "Re: confused about the Server / Client Model of XFree"
- In reply to: Mark: "When to use Environment Variables?"
- Next in thread: Mark: "Re: When to use Environment Variables?"
- Reply: Mark: "Re: When to use Environment Variables?"
- Reply: LEE Sau Dan: "Re: When to use Environment Variables?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|