posted 19 years ago
"DeepakD", please review our Naming Policy. We try and avoid confusion here by using real names instead of shortcut names or "handles".
I haven't a clue as to what your problem is, since I telnet and ssh in all the time and my .bash_profile always works. You might check to see if it's properly located (file name ".bash_profile", case sensitive in your home directory) and that you are, in fact using the home directory and command shell that you think you are (look at your login info in /etc/passwd).
You might have to mark .bash_profile as executable to make it work. I forget.
One thing that may help would be to put in an echo statement in .bash_profile that will cause a message to print when it gets executed.
.profile should work, too. It's supposed to be a generic profile that's not shell-dependent. As to which one gets executed first, I'd have to RTFM.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.