Date: Tue, 4 Sep 2001 15:46:15 +0300 (EEST) From: "Alexey N. Nazarov" <blaze@iptcom.net> To: Peter Pentchev <roam@ringlet.net> Cc: <freebsd-bugs@FreeBSD.ORG> Subject: Re: question! Message-ID: <20010904153236.X48123-100000@frux.iptelecom.net.ua> In-Reply-To: <20010904151620.K61594@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Good daytime. Hmm, but this string work in my profile on FreeBSD 3.4 STABLE - 4.2 STABLE (and all RC & RELEASE). But you have convinced me! ;-)) Thanks once again Peter. I shall continue To study this problem ;-) On Tue, 4 Sep 2001, Peter Pentchev wrote: PP>On Tue, Sep 04, 2001 at 02:55:56PM +0300, Alexey N. Nazarov wrote: PP>> PP>> Good daytime. PP>> PP>> Thanks Peter, i have in my ~/.tcshrc only one program - UPTIME! PP>> All work now! PP>> PP>> Question: This is a BUG or documented BUG aka Ficha ? ;-) PP> PP>It's not really a bug, it's what the common rules of logic PP>and scp/ssh/login interaction would dictate :) PP> PP>What happens is the following: PP> PP>- You invoke 'scp $FILENAME $USER@$HOST' PP>- scp invokes 'ssh -l $USER $HOST some-server-side-scp-helper' PP>- ssh logs in as $USER@$HOST PP>- the SSH server at $HOST starts up $USER's shell, passing it PP> 'some-server-side-scp-helper' as a command to execute PP>- $USER's shell - in this case, tcsh - does everything it would normally PP> do when invoked in non-interactive mode. What tcsh does in PP> non-interactive mode is, it sources /etc/csh.cshrc and ~/.tcshrc, PP> as described in the tcsh(1) manual page. PP>- tcsh executes any command it finds in ~/.tcshrc. PP> PP>In .tcshrc, you should only place essential commands/settings PP>which you want to be executed any time any kind of utility decides PP>to do something in your name - as your user. Everything that PP>you want to start at an interactive login should be placed in PP>/etc/csh.login and ~/.login, as described in the tcsh(1) manual page. PP>~/.tcshrc should only contain things like PATH or such, which you PP>want to make available for the use of non-interactive utilities, PP>such as 'ssh $USER@$HOST run some command'. PP> PP>So, if you want to see the machine's uptime every time you log in, PP>place the 'uptime' command in ~/.login, not in ~/.tcshrc. PP> PP>G'luck, PP>Peter PP> PP> -- [BLAZE-UANIC] [FRUX-RIPE] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010904153236.X48123-100000>