On Fri, 3 Oct 2003, Richard Revis wrote:

> I have a .bash_profile that calls .bashrc, and fortune is called from
> .bashrc (fortune -s bofh-excuses homer futurama chalkboard) to give me a
> quote when I log in.
>
> This mostly works fine, but when I try and scp something _to_ this machine
> from another it just displays the first line of the fortune and then
> quits.
>
> Which file is it that scp calls, and is it possible to disable it and/or
> move fortune to another file so it only shows up for shell logons (or even
> local logins)?

>From the top of .bashrc:
# This file is sourced by all bash shells on startup, whether interactive
# or not.  This file *should generate no output* or it will break the
# scp and rcp commands.

>From the top of .bash_profile:
#This file is sourced by bash when you log in interactively.

So, you should have your fortune command in .bash_profile.

-- 
Marshal Newrock, unemployed Linux user in Lansing, MI
Caution: Product will be hot after heating


--
[EMAIL PROTECTED] mailing list

Reply via email to