On Sun, 2002-12-29 at 19:49, Michael Adams wrote:

> Stephen - bash handles appending
> thus
> ----------------------------------------
> date > /tmp/fortune.txt
> fortune >> /tmp/fortune.txt
> uptime >> /tmp/fortune.txt
> 
> fortune > /etc/motd
> ----------------------------------------
> should achieve the same thing.
> 
> By the way is motd a standard thing? If not how do you implement it?
> Presumably it means "message of the day".

Well, I like using sed - been using it for quite some time, and yeah,
over the past 10 years bash has grown up and matured quite a bit - but
I'm not about to read 300+ pages of documentation on bash scripting just
yet...(g)...but it probably would...

The "motd" is for mates that telnet in or for when I telnet in - kinda
"old school" stuff - reminiscent of ancient *nix systems back at uni and
*nix based bbs's...had to have a cute motd...

You get the initial motd upon first login - but you can easily implement
the same for each time someone opens a bash/csh/ksh/tcsh shell if you so
desire - but that gets annoying...

-- 
Sun Dec 29 21:15:01 EST 2002
  9:15pm  up  3:19,  3 users,  load average: 0.29, 0.39, 0.33
------------------------------------------------------------------
|            __    __          | kuhn media australia            |
|           / ,, /| |'-.       | http://kma.0catch.com           |
|          .\__/ || |   |      |=================================|
|       _ /  `._ \|_|_.-'      | stephen kuhn                    |
|      | /  \__.`=._) (_       |  email: [EMAIL PROTECTED] |
|      |/ ._/  |"""""""""|     |  email: [EMAIL PROTECTED]    |
|      |'.  `\ |         |     |    icq: 5483808                 |
|      ;"""/ / |         |     |                                 |
|  smk  ) /_/| |.-------.|     | mobile: 0410-728-389            |
|      '  `-`' "         "     | Berkeley, New South Wales, AU   |
------------------------------------------------------------------
* linux user:267497 * RH 7.3+ * PC/Mac/Linux/Networking/Consulting
------------------------------------------------------------------


Who does not love wine, women, and song,
Remains a fool his whole life long.
                -- Johann Heinrich Voss

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to