Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2003 13:20:02 -0700
From:      Joshua Oreman <oremanj@get-linux.org>
To:        questions@freebsd.org
Subject:   Re: motd question
Message-ID:  <20030826202002.GA243@webserver>
In-Reply-To: <20030825180255.GB8753@webserver>
References:  <20030825163744.GA61150@keyslapper.org> <20030825180255.GB8753@webserver>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 25, 2003 at 11:02:55AM -0700 or thereabouts, Joshua Oreman wrote:
> On Mon, Aug 25, 2003 at 12:37:44PM -0400 or thereabouts, Louis LeBlanc wrote:
> > Probably not possible, but I was wondering (and have for some time,
> > though I can't find any info on it either way) whether /etc/motd is
> > strictly a text in/text out file, or if there is a way to get it to
> > execute a command, the output of which is to be included in the text
> > output?
> 
> You could make it a FIFO and put a Perl script or something at the
> other end, if you want dynamically-generated output.
> [ ... ]
> Be careful.

Really! This approach can come back and bite you in the butt. Basically, be absolutely
sure the writer process is started during bootup. Otherwise it'll hang indefinitely
when logging in; you need to drop to single-user to fix it.

-- Josh

> 
> > 
> > TIA
> > Lou
> > -- 
> > Louis LeBlanc               leblanc@keyslapper.org
> > Fully Funded Hobbyist, KeySlapper Extrordinaire :)
> > http://www.keyslapper.org                     ԿԬ
> > 
> > Make it right before you make it faster.
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030826202002.GA243>