Unless one wants to set a persistant value, that can be used after his/hers
process finishes...

Unfortunately functions like setenv(), putenv(), system("export ...") change
only the current environment of the process itself, not the 'global'
environment of the user (let alone the system).

Regards,
Arie de Muijnck

----- Original Message -----
You might want to try setenv(). Just type 'man 3 setenv' in a Linux
shell to get the man-page for that function (which is in stdlib).

Sander


-----Original Message-----
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

Reply via email to