On Wed, Apr 07, 2004 at 10:33:17AM -0300, Nelson Guedes Paulo Junior wrote: > Date: Wed, 7 Apr 2004 10:33:17 -0300 > From: Nelson Guedes Paulo Junior <npaulo@xxxxxxxxxxxxxxxx> > To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx> > Subject: Re: SSH problem! > Reply-To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx> > > On Wed, Apr 07, 2004 at 06:23:41AM -0700, Bill Schoolcraft wrote: > > At Tue, 6 Apr 2004 it looks like Tom 'Needs A Hat' Mitchell composed: > > > > > On Wed, Apr 07, 2004 at 12:38:31AM -0300, Nelson Guedes Paulo Junior wrote: > > > > > > > > > > > I've installed fortune-mod (yum install fortune-mod) and add the > > > > following line to ~/.bashrc for my user: > > > > > > > > echo;fortune;echo > > > > > > > > but, whem I try to "scp" a file from an external host to my machine, > > > > afeter the autentication phase, fortune runs and my session is aborted > > > ... > > > > Any ideias?????? > > > > Why this happens???? > > > > > > > The answer was posted a little while ago, remove that line from > > your ~/.bashrc file and put it in your ~/.bash_profile file. > > > > I was having the same problem until I read that post. > > > > Thanks, but still have another problem. When I do that, fortune doesn't > print any message in gnome-terminal!!! > > I've put it inside a test like someone sugested me. For those searching the archives 6 months from now, I suspect it looks a bit like this: Is this Shell Interactive? -------------------------- To determine within a startup script whether or not Bash is running interactively, test the value of the `-' special parameter. It contains `i' when the shell is interactive. For example: case "$-" in *i*) echo This shell is interactive ;; *) echo This shell is not interactive ;; esac Alternatively, startup scripts may examine the variable `PS1'; it is unset in non-interactive shells, and set in interactive shells. Thus: if [ -z "$PS1" ]; then echo This shell is not interactive else echo This shell is interactive fi -- T o m M i t c h e l l /dev/null the ultimate in secure storage.