scp not tolerant of extraneous shell messages

Garance A Drosihn drosih at rpi.edu
Tue Jul 2 11:33:36 EST 2002


At 12:22 PM -0500 7/1/02, Ben Lindstrom wrote:
>You are really looking for sftp which has no shell dependancies.
>
>But in general. No.. Fix your startup scripts.  scp is rcp in a
>ssh wrapper.  and rcp will also fail.

For what it is worth, I fixed this in my own shell processing by
moving any message-producing commands inside of:

     if [ "$TERM" != "dumb" ] ; then
        echo "Welcome!"
     fi

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu



More information about the openssh-unix-dev mailing list