The consensus was to write a short script to rewrite /etc/motd
and to run it from crontab as often as needed. Most people refrained
from commenting on my political problem of trying to make users pay
attention.
I did have a memory of, on VMS, there being a way to (elegantly?)
force the current time into SYS$ANNOUNCE. No need for force with
Unix.
Original question:
------------------
Anyone have an implementation (elegant or not) of presenting the
output of a date command when anyone reads the /etc/motd file? I
know I can just put "Attention, Y2K testers: Date is `date`" in
/etc/profile, but they tend to ignore stuff that isn't on the very
last line of output. I'd like to put this line, by means of a pipe,
ksh co-process, or whatever works, at the end of /etc/motd. If you
have some code or ideas, thanks.
Hugh
Hugh.Pritchard_at_WCom.com (or 9007944_at_pageMCI.com to my pager)
(703) 341-6995; page 1-888-900-7944; FAX (703) 341-9126
Received on Thu Aug 12 1999 - 16:08:44 NZST