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

Shobhit Kumar <[email protected]> Mon, 15 Aug 2005 21:50:11 +0530
Newsgroups gmane.user-groups.linux.delhi.devel
Message-ID <[email protected]>
why dont you put in /etc/profiles...
that is comon for all users I beleive

rgds
Shos

On 7/16/05, Anurag Verma <newanurag-/[email protected]> wrote:
> 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 solutio=
n for
> > my desired scenario.
> >
> > >From Abhijit
> > >About the best you can do is to put "export X=3DY" 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 ot=
her
> > 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 fi=
le
> > >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 r=
ead
> > >that variable using getenv or environ datastructure.
> >
> > This solution would not help me. Please refer the above mentioned scena=
rio.
> >
> > 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
> =

> _______________________________________________
> 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
> =



-- =

Rgds
Shobhit