X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,7c9af568bd251a5 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2003-07-22 00:02:00 PST Newsgroups: alt.ascii-art From: Harry Mason Subject: Re: [sh] if wrapping won't kill it References: <3F1B3D87.80408@deadspammer.net> <3f1c11b7$0$1971$626a54ce@news.free.fr> <3f1c6a37$0$1306$626a54ce@news.free.fr> Message-ID: User-Agent: slrn/0.9.7.4 (Linux) NNTP-Posting-Host: tarrant.ecs.soton.ac.uk Date: 22 Jul 2003 07:42:11 GMT X-Trace: 22 Jul 2003 07:42:11 GMT, tarrant.ecs.soton.ac.uk Lines: 37 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!server3.netnews.ja.net!news-spool.soton.ac.uk!news.ecs.soton.ac.uk!tarrant.ecs.soton.ac.uk Xref: archiver1.google.com alt.ascii-art:24319 Faux_Pseudo wrote: > _.--- BoD spoke in alt.ascii-art --------._ >> Anyway I've put that in /etc/motd ... >> Until I find a better one :) > > I only have two login shells on my system so I didn't see motd very > often. So instead I when I found out about rt[0] I went and added > a variation of this to my ~/.xinitrc: > > /usr/X11R6/bin/root-tail -g 165x8+001+595 -font fixed \ > /home/faux/.fortune,cyan,'FORTUNE' -reload 20 & > > And this in my crontab: > */5 * * * * /usr/games/fortune -a > /home/faux/.fortune > > This way I can always see new fortunes. I have an alternative: a fortune in your titlebar. I wrote this because all "xterm"s look the same in my icon manager, and it's a useful way to tell them apart as well as to read fortunes. #!/usr/bin/perl -w open(F, "fortune -s -n100 |"); undef $/; $_ = ; s/[\t\n]/ /g; s/\r//g; close(F); @a = ("xterm", "-title", "xterm: $_", "-n", "xterm: $_"); push(@a, @ARGV); exec(@a); -- | Harry Mason | .------------. | .___, |"Whatever you do will be | | University of | | hjm200 @ | | ___('v')___ | insignificant. However, | | Southampton | | zepler.net | | `"-\._./-"' | it is vitally important | | England | '------------' | hjm ^ ^ | that you do it." Gandhi |