Re: Ilugd-dev Digest, Vol 14, Issue 1
Bhopal Singh <bsingh-dv/[email protected]> Sat, 16 Jul 2005 16:34:38 +0530
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Message-ID | <[email protected]> |
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!!!