How to set an env variable persisting user sessions/system reboot.
Bhopal Singh <bsingh-dv/[email protected]> Fri, 15 Jul 2005 18:59:10 +0530
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I wanted to set an environment variable which can survive user session even the system reboot. To explain it more, let say I set an env variable MY_ENV_VAR = "SOME value". Now I want to access this environment variable even if the linux user changes his shell or logs off and login again even in case system reboots. And this I want to do in a C/C++ program. I want this for various distribution of Linux. Red Hat, Novell, SuSe etc I will greatly appreciate any pointers to achieve the same. Thanks and Regards, Bhopal Singh ASN PreRelease System Developer Adobe Systems (India) Pvt Ltd. I-1A,City Center,Sector 25 A, Noida,UP-201301 Tele-91-120-2444711,Ext 34112 Fax: 91-120-2537681 Mobile: 9810577027 The revolution is not the Technology but the changes it enables.