From owner-freebsd-bugs Tue Sep 4 5:53:36 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from frux.iptelecom.net.ua (frux.iptelecom.net.ua [212.9.224.77]) by hub.freebsd.org (Postfix) with ESMTP id C791637B405 for ; Tue, 4 Sep 2001 05:53:27 -0700 (PDT) Received: from frux.iptelecom.net.ua (frux.iptelecom.net.ua [212.9.224.77]) by frux.iptelecom.net.ua (8.11.6/8.9.3) with ESMTP id f84CkFZ68536; Tue, 4 Sep 2001 15:46:15 +0300 (EEST) (envelope-from blaze@iptcom.net) Date: Tue, 4 Sep 2001 15:46:15 +0300 (EEST) From: "Alexey N. Nazarov" Reply-To: "Alexey N. Nazarov" To: Peter Pentchev Cc: Subject: Re: question! In-Reply-To: <20010904151620.K61594@ringworld.oblivion.bg> Message-ID: <20010904153236.X48123-100000@frux.iptelecom.net.ua> Organization: IPTelecom Ltd. X-Phone: 380 (44) 238-8989 X-HomePage: http://blaze.com.ua MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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