Re: Ilugd-dev Digest, Vol 14, Issue 1

Anurag Verma <newanurag-/[email protected]> Sat, 16 Jul 2005 08:29:32 -0700 (PDT)
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <[email protected]>
hi
can u add ur entry in /proc and read that entry in ur c programs. 
anurag

--- Bhopal Singh <bsingh-dv/[email protected]> wrote:

> Hi All,
> 
> Abhijit, Sandip, Anurag thanks for you replies. 
> 
> I'm aware of the solutions however none of them is a full proof solution for
> my desired scenario.
> 
> >From Abhijit
> >About the best you can do is to put "export X=Y" in ~/.profile
> 
> But this is shell specific. So consider the following scenario:
> 
> I did this for the current shell used by the user [e.g. bash and I make
> entry in .bash_profile], but later on user changed his shell to some other
> shell? [may be ksh, sh or csh whatever]. 
> 
> Can you suggest some generic solution under the above scenario?
> 
> > From Sandip
> >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.
> 
> Whatever solution I suggest has to be generic enough to support at least
> RedHat[Fedora is desktop release from RedHat with best of my knowledge],
> SuSe, Novell.. etc..
> 
> >From Anurag
> >why dont u define ur variable in .loginrc or .bashrc or .profile and read
> >that variable using getenv or environ datastructure.
> 
> This solution would not help me. Please refer the above mentioned scenario.
> 
> Any help would be greatly appreciated!!
> 
> Thanks and Regards,
> ~Bhopal
> The life does not have to be perfect to be wonderful!!!
> 
> 
> _______________________________________________
> 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