Re: [OT] How to add fortune output to terminal



On Sun, Apr 13, 2008 at 2:27 AM, Bob Proulx <bob@xxxxxxxxxx> wrote:
Angus Auld wrote:
> Would someone be able to advise me as to what is a
> safe method to add a fortune command to my .bashrc
> file so as to have fortune output in my terminal @
> login?
> I've googled this pretty extensively, and have found a
> few methods, but also warnings that certain processes
> can be broken by doing this.

Your .bashrc should be completely silent. If it produces any output
then it will break 'scp' and 'rsync' at the least. Probably other
tools that use a remote shell such as cvs, git, etc.

http://www.openssh.org/faq.html#2.9

In my experience, I've never had fortune break scp, but maybe I've
just been lucky.

But, if it does cause problems, just remove it and add it to
.bash_profile instead.

--
Vikki Roemer

Registered Linux user #280021

"Sometimes the lights all shinin' on me;
Other times I can barely see.
Lately it occurs to me what a long, strange trip its been."
-- Grateful Dead, "Truckin'"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: [OT] How to add fortune output to terminal
    ... > safe method to add a fortune command to my .bashrc ... Your .bashrc should be completely silent. ... Batch jobs are not login ...
    (Debian-User)
  • Re: [OT] How to add fortune output to terminal
    ... safe method to add a fortune command to my .bashrc ... An extract from my .bashrc ...
    (Debian-User)
  • Re: [OT] How to add fortune output to terminal
    ... safe method to add a fortune command to my .bashrc ... file so as to have fortune output in my terminal @ ... Your .bashrc should be completely silent. ... echo "Fortune cookie:" ...
    (Debian-User)
  • Re: exporting PATH (without logging in again)
    ... Russell Steicke -- Fortune says: ... I'm so broke I can't even pay attention. ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • RE: tr
    ... There is also a method spat out by fortune every once in awhile, using col, but I can't remember it. ... To unsubscribe, ...
    (freebsd-questions)