When you run ssh without a command to run on the remote host, it will run the login command by default, and you get your .profile and .bashrc run. But when you specify a command to run, ssh will run that command /instead/ of login, so you don't get .profile or .bashrc. Something to keep in mind so as to not shoot yourself in the foot.
That's not what I noticed. I think .bashrc is getting run.
I did the following test: ssh myhost set
and a bunch of variables showed up that I am setting only in my .bashrc.
Sorry to keep posting, "me too," but Phil is right. You can echo something in your .bashrc to try this out too. I spent way too much time figuring this out a couple months ago. I think a workaround I found where I needed to have my .profile stuff was to do something like this:
ssh hostname '. .profile; do other stuff'
Bryan
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
