SCP Problem SOLVED

Kurt Wall kwall at kurtwerks.com
Sat Oct 27 18:01:56 PDT 2007


On Sat, Oct 27, 2007 at 10:47:24AM -0500, David A. Bandel wrote:
> On 10/26/07, Kurt Wall <kwall at kurtwerks.com> wrote:
> > On Fri, Oct 26, 2007 at 09:26:18AM -0700, Bill Campbell wrote:
> > > On Thu, Oct 25, 2007, Kurt Wall wrote:
> > > >On Fri, Oct 26, 2007 at 11:34:22AM +1000, james at jamesmcdonald.id.au wrote:
> > > >> > On Thu, Oct 25, 2007 at 03:37:56PM +1000, James McDonald wrote:
> > > >> >> Kurt Wall wrote:
> > > >> >>> Hola, list,
> > > >> >
> > > >> > [scp broken]

Heh, it turned out to be ~/.cshrc on the remote system. Definitely not
something I would have predicted. It looked like this:

if ($?prompt) then
    # An interactive shell -- set some stuff up
    set filec
    set history = 100
    set savehist = 100
    set mail = (/var/mail/$USER)
    if ( $?tcsh ) then
        bindkey "^W" backward-delete-word
        bindkey -k up history-search-backward
        bindkey -k down history-search-forward
    endif
endif
exec /usr/local/bin/bash

Evidently, "exec /usr/local/bin/bash" was confusing scp. Putting the
exec statement inside the last endif fixed it:

f ($?prompt) then
        # An interactive shell -- set some stuff up
        set filec
        set history = 100
        set savehist = 100
        set mail = (/var/mail/$USER)
        if ( $?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
        exec /usr/local/bin/bash
endif

Go figure.

Kurt
-- 
Q:	What do you get when you cross a mobster with an international standard?
A:	You get someone who makes you an offer that you can't understand!



More information about the Linux-users mailing list