* Bryan Murdock [Tue, 17 Aug 2004 at 17:22 -0700] <quote> > Andrew Jorgensen wrote: > >>Are you sure it only gets .bashrc? I would think that it would get > >>.profile > >>and not .bashrc for something without a shell, or neither.= > > > > > >It does get a shell, what it doesn't get is a login shell. I wasn't > >communicating very well when I wrote that (sorry). So the problem is > >that it's got a shell that's not a login shell and isn't the child of > >a login shell either, so it only gets .bashrc. > > > > He's right, I've had problems with this too. Pretty annoying really. > > Bryan </quote>
Interesting stuff. I dug into this and it seems to me that, indeed, niether bashrc or profile get executed on an ssh. Consequently, anything env vars you see are NOT from the remote host, but rather your local vars. 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. Von Fugal
pgplz2g89fp00.pgp
Description: PGP signature
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
