This will work to make a new fortune periodically(What, every minute?), but to have a
new fortune on every login, you just call /usr/games/fortune in the /etc/profile(or
maybe the /etc/bashrc).
If you just want to do it for individual users, put the fortune call in their
~/.bashrc or ~/.bash_profile.
Ward William E PHDN wrote:
>
> You can do it via these steps (I know, the first stuff is
> kiddie stuff, but a newer Linux person might want to try
> it).
>
> su
> <enter root password>
> /usr/games/fortune > /etc/motd
> crontab -e
> i
> 0 0 * * * /usr/games/fortune > /etc/motd
> <esc>
>:wq
> exit
>
> The first line after entering the root password simply
> sets it up for this day.
>
> HTH!
> Bill Ward
>
> -----Original Message-----
> From: Michaell Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: stupid linux tricks??
>
> Okay it's a useless thing to know, but I have two linux machines (slack and
> RH). The slackware machine displays a qotd upon login. I didn't install the
>
> slackware machine and can't figure out how to get the qotd going on the RH
> machine.
>
> Any clues??
>
> Michaell
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
--
-------------------------------------
Sam Bayne - System Administrator
North Seattle Community College
[EMAIL PROTECTED] (206)527-3762
=====================================
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list