From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 3 20:00:51 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2AF416A415 for ; Tue, 3 Oct 2006 20:00:51 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A987343DBB for ; Tue, 3 Oct 2006 20:00:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k93K0UXT087416 for ; Tue, 3 Oct 2006 20:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k93K0U7r087415; Tue, 3 Oct 2006 20:00:30 GMT (envelope-from gnats) Date: Tue, 3 Oct 2006 20:00:30 GMT Message-Id: <200610032000.k93K0U7r087415@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Helmut Schellong Cc: Subject: Re: bin/103919: scp does not work correctly to and called from another host X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Helmut Schellong List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 20:00:52 -0000 The following reply was made to PR bin/103919; it has been noted by GNATS. From: Helmut Schellong To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/103919: scp does not work correctly to and called from another host Date: Tue, 03 Oct 2006 21:52:10 +0200 Problem is solved! I have read the man pages of scp and ssh and so on again: scp uses ssh. ssh -> sshd executes a login shell: -csh The -csh executes ~/.cshrc .cshrc contains commands they put strings to stdout fd=1! I have not expected this behaviour of the COPY-command scp. I have modified my .cshrc: ---------------------------------------------------- if (! $?SSH_CONNECTION && ! $?BOOTcmd ) then #atacontrol mode 1 UDMA33 XXX #atacontrol mode acd0 UDMA33 @ v = ( `sysctl -n kern.metadelay` > 8 ) if ($v == 1) sysctl kern.metadelay=8 kern.dirdelay=9 kern.filedelay=10 @ v = ( `sysctl -n kern.maxfiles` < 1536 ) if ($v == 1) sysctl kern.maxfiles=1536 #sysctl kern.geom.debugflags=16 if (-e /dev/ad1s4e && ! -e /dev/s) then echo ln -s /dev/ad1s4e /dev/s ln -s /dev/ad1s4e /dev/s endif if (-e /dev/acd1 && ! -e /dev/dvd) then echo ln -s /dev/acd1 /dev/dvd ln -s /dev/acd1 /dev/dvd endif if (! $?DISPLAY ) then echo "\n Tastenprogrammierung ..." #/usr/bin/mapkey $UFS/sc/conf/keys #/usr/bin/mapstr $UFS/sc/conf/strings #$UFS/bin/mapfkeys $UFS/sc/conf/strings.437 #source $UFS/sc/conf/setfkey echo " Bildschirmrand und Beep ...\n" if (! $?SESSION_MANAGER) echo '[=4A[=32000;7B[=3C[=13;15C' endif #/bin/sh $UFS/sc/conf/genenv date +" %A, %e. %B %Y %X %Z KW%V TJ%j" echo "\n" echo " Hallo sc, dann woll'n wir mal wieder \!?" echo "\n" echo " Suche nach aktuellen Terminen ..." calendar -f /u/sc/calendar echo setenv BOOTcmd 1 endif ----------------------------------------------------