Re: How to set an env variable persisting user sessions/system reboot.

Anurag Verma <newanurag-/[email protected]> Fri, 15 Jul 2005 11:17:46 -0700 (PDT)
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <[email protected]>
hi
why dont u define ur variable in .loginrc or .bashrc or .profile and read that
variable using getenv or environ datastructure.
anurag verma
--- Bhopal Singh <bsingh-dv/[email protected]> 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.
> 
> 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.
> 
>  
> 
> _______________________________________________
> The ILUGD-Dev mailing list
> Ilugd-dev-cunTk1MwBs8/[email protected]
> 
> Subscribe/Unsubscribe/Suspend your list membership at:
> http://frodo.hserus.net/mailman/listinfo/ilugd-dev
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com