No, a process can't modify the environment of its parent (and the parent of a
program is typically a shell). You could have the program output the desired
environment variable contents and do
% YOURENVVAR=`yourprogramname`
- Rob
> -----Original Message-----
> From:
> [email protected]
> p.com
> [mailto:[email protected]
> avincidsp.com] On Behalf Of Van Vliet
> Sent: Wednesday, December 17, 2008 7:57 AM
> To: [email protected]
> Subject: A way to export from c an environment var
>
> Hi,
>
> Is there a way to create and export from c an environment
> variable a bash script can be aware of? I intend something
> like PATH, etc.
>
> Thanks and Regards,
>
> VanVliet
>
> Dr. Caroline Van Vliet
> Adfl Group
> Advanced DSP Flexible Language Group
> Via Greto di Cornigliano 6R
> 16152 - Genova, Italy
> Tel. +39 010 8609370 - Fax +39 010 8609381
>
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> _______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source