* Bryan Murdock [Thu, 19 Aug 2004 at 09:18 -0700]
<quote>
> Phillip Hellewell wrote:
> >>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.
</quote>

Yes, I stand corrected. My tests where flawed. I was setting FOO in .bashrc
and doing an ssh host echo $FOO forgetting that $FOO is interpolated before
the command. ssh host 'echo $FOO' produced the results described above.

/me embarrasses himself

Attachment: pgpzHkF21fzJl.pgp
Description: PGP signature

_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies

Reply via email to