bin/103919: scp does not work correctly to and called from
another host
Helmut Schellong
var at schellong.biz
Tue Oct 3 13:00:52 PDT 2006
The following reply was made to PR bin/103919; it has been noted by GNATS.
From: Helmut Schellong <var at schellong.biz>
To: bug-followup at 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
----------------------------------------------------
More information about the freebsd-bugs
mailing list