Re: How to set an env variable persisting user sessions/system reboot.
Sandip Bhattacharya <[email protected]> Fri, 15 Jul 2005 19:21:24 +0530
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Organization | Puroga Technologies Pvt. Ltd. |
| Message-ID | <[email protected]> |
Bhopal Singh wrote: > 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. > Fedora has a /etc/profile.d to drop such shell scripts in. Each .sh file in this directory is executed when an user opens a login shell. > And this I want to do in a C/C++ program. > - Sandip -- Sandip Bhattacharya * Puroga Technologies * sandip-/[email protected] Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3