|
RE: Set global environment variable using Setenv/putenv
|
02/17/2009 9:40 AM
post22346
|
RE: Set global environment variable using Setenv/putenv
For existing children it`s not possible. For new children you do an "export VARIABLE=..."
> -----Original Message-----
> From: sathish kumar [mailto:community-noreply@qnx.com]
> Sent: February-16-09 11:20 PM
> To: ostech-core_os
> Subject: Re: Set global environment variable using Setenv/putenv
>
> Hi.
> HOw is it possible to do any modification in the Korne shell (ksh) to
> reflect the environment variable changes made in the child process. In
> our case the parent in the korne shell (ksh) from where the executables
> are invoked.
>
> Thanks,
>
>
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post22326
>
|
|
|
|
Re: Set global environment variable using Setenv/putenv
|
02/17/2009 10:15 AM
post22349
|
Re: Set global environment variable using Setenv/putenv
Process environment is data which is local to the process. Every process has its *very own* environment, like every
process has its own, private memory area[s].
Parents can not modify their childrens' environments, they can just pass an environment when the child is created;
children can not modify their parents' envirnoments.
In short: No process can modify any other existing process'es environment.
You will need to find a different approach.
What are you trying to do?
|
|
|