Re: Global change in environment variables from inside C programs
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 01/29/04
- Next message: Jem Berkes: "Re: Parsing ZIP headers"
- Previous message: Barry Margolin: "Re: open() command failing on serial port - Update"
- In reply to: Rajarshi Chakraborty: "Global change in environment variables from inside C programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 03:48:51 GMT
In article <493414aa.0401281922.62c4c427@posting.google.com>,
systems_420@yahoo.com (Rajarshi Chakraborty) wrote:
> Hi,
>
> How can I make global changes to environment variables in Linux/Unix
> from inside C programs? I want this modified value to be available to
> independent scripts/processes. I figured, sentenv()/putenv() don't
> change the values of the environment variables permanently. So by what
> other way can I achieve this? Any suggestion will be highly
> appreciated.
Read the comp.unix.questions FAQ, which has a long section addressing
this issue. The short answer: there's no general way.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Jem Berkes: "Re: Parsing ZIP headers"
- Previous message: Barry Margolin: "Re: open() command failing on serial port - Update"
- In reply to: Rajarshi Chakraborty: "Global change in environment variables from inside C programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]