Gentoo Archives: gentoo-user

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSH hosed, only rubble remains
Date: Sun, 28 May 2006 00:47:18
Message-Id: 9acccfe50605271741g192d555bp6794a61e9797504a@mail.gmail.com
In Reply to: Re: [gentoo-user] SSH hosed, only rubble remains by John Jolet
1 On 5/27/06, John Jolet <john@×××××.net> wrote:
2 >
3 > >
4 > > That was the hint I needed. It's /bin/bash, which reminded me I
5 > > just changed something
6 > > in .bashrc which outputs a message and does some other stuff which
7 > > must be
8 > > confusing scp. In fact, I just confirmed that by commenting it
9 > > out. Now scp works too.
10 > > So: PROBLEM SOLVED.
11 > >
12 > > Now I just have to figure out how to tailor it some more so the
13 > > offending code is skipped
14 > > for 'scp'. That I can do.
15 > >
16 >
17 > bash has a built-in variable that tells you what the command
18 > was....should be able to test for "scp" in your script.... i've
19 > never tried to get that fancy with .bashrc.
20 > --
21 > gentoo-user@g.o mailing list
22 >
23 > That does not work for ssh/scp sessions. I usually test $PS1 to tell
24 if it's really a shell -- the variable does not even exist for an scp
25 session,
26 although .bashrc gets called.
27
28 ++ kevin
29
30
31 --
32 Kevin O'Gorman, PhD

Replies

Subject Author
Re: [gentoo-user] SSH hosed, only rubble remains John Jolet <john@×××××.net>