Subject: Re: Problems with scp against Solaris
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-net
Date: 11/14/2006 15:37:06
On Tue, Nov 14, 2006 at 03:22:09PM +0100, Jan Danielsson wrote:
> Manuel Bouyer wrote:
> [---]
> >>    Does anyone recognize this behavior? Was it something I did, or could
> >> the problem be in the Solaris system at the university?
> > 
> > You says it prints a fortune, this may be a hint.
> > Does
> > ssh <solaris box> echo 
> > prints anything ? It should not.
> 
>    It does print a fortune.. :-(  You know, I kind of found that
> peculiar, since no other server I use scp against exhibits that
> behavior, but I assumed there was a good reason I got a fortune through scp.
> 
>    Does this "fortune" issue bring me any closer to a solution, or does
> it merely verify that there indeed is a problem?

You have to find from where it's called (maybe your .profile or .cshrc ?)
and make it appear only if you have a tty.
In a .cshrc it would be something like:
if ($?prompt) then
	display fortune
endif

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--