* date command when read /etc/motd?
@ 1999-08-12 15:39 Hugh Pritchard
0 siblings, 0 replies; 2+ messages in thread
From: Hugh Pritchard @ 1999-08-12 15:39 UTC (permalink / raw)
To: tru64-unix-managers
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@WCom.com (or 9007944@pageMCI.com to my pager)
(703) 341-6995; page 1-888-900-7944; FAX (703) 341-9126
^ permalink raw reply [flat|nested] 2+ messages in thread* date command when read /etc/motd?
@ 1999-08-06 19:56 Hugh Pritchard
0 siblings, 0 replies; 2+ messages in thread
From: Hugh Pritchard @ 1999-08-06 19:56 UTC (permalink / raw)
To: tru64-unix-managers
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@WCom.com (or 9007944@pageMCI.com to my pager)
(703) 341-6995; page 1-888-900-7944; FAX (703) 341-9126
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-08-12 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-12 15:39 date command when read /etc/motd? Hugh Pritchard
-- strict thread matches above, loose matches on Subject: below --
1999-08-06 19:56 Hugh Pritchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox