Date: Tue, 3 Oct 2006 20:00:30 GMT From: Helmut Schellong <var@schellong.biz> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/103919: scp does not work correctly to and called from another host Message-ID: <200610032000.k93K0U7r087415@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/103919; it has been noted by GNATS. From: Helmut Schellong <var@schellong.biz> 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 ----------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610032000.k93K0U7r087415>