Messages at login

Andrew Moore amoore at mooresystems.com
Tue Jun 22 21:02:34 CDT 2004


On Tue, Jun 22, 2004 at 03:28:43PM -0500, Brian Densmore wrote:
> So what you're saying is that it would be possible to 
> write a daemon that could read a random spot in the 
> fortune database at random intervals and stick it in 
> /etc/motd? And no one has done this yet? Of
> course it would mean no one could personalize it as it
> would be system-wide. Thanks for removing my ignorance on
> the subject.

Paul Vixie already wrote the daemon. You just have to configure it.

put something like this in /etc/cron.daily/motd:

#!/bin/bash

( echo "" ; /usr/games/fortune ; echo "" ; echo "" ) > /etc/motd

-Andy




More information about the Kclug mailing list