Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mimsy!umd5!brl-adm!adm!rbj@icst-cmr.arpa From: rbj@icst-cmr.arpa (Root Boy Jim) Newsgroups: comp.unix.questions Subject: Suppressing the message of the day. Message-ID: <7422@brl-adm.ARPA> Date: Mon, 18-May-87 08:46:10 EDT Article-I.D.: brl-adm.7422 Posted: Mon May 18 08:46:10 1987 Date-Received: Tue, 19-May-87 01:25:20 EDT Sender: news@brl-adm.ARPA Lines: 39 From: Jeff Forys Date: 15 May 87 00:47:40 GMT In article <1506@uwmacc.UUCP> ejnorman@unix.macc.wisc.edu (Eric Norman) writes: > In article <15452@brunix.UUCP> kbb@brunix.UUCP (Karl Berry.) wonders: > > > Is it possible to suppress the printing of the message of the day at > > My .login contains "make -f .hushlogin"; I only see it when it changes. When what changes? The file mod time or the *contents* of the file? At boot time, for example, BSD writes the current kernel rev into "/etc/motd". Or it doesn't. This is done in /etc/rc.local. Many sites have commented this out because it is a stupid time waster. I think the idea of a makefile is cute. Unless the machine comes up on a new kernel, "/etc/motd" will be the same, but the mod time will have been changed. If you want "/etc/motd" displayed only when the contents change, you might use something like: cmp -s .hushlogin /etc/motd if ( $status ) then cat /etc/motd | tee .hushlogin endif Of course all this could be in the makefile too. Or perhaps it is useful to know when the system is rebooted. BTW, why not `tee .hushlogin < /etc/motd'? Who needs the cat? Jeff Forys @ UC/Boulder Engineering Research Comp Cntr (303-492-6096) forys@Boulder.Colorado.EDU -or- ..!{hao|nbires}!boulder!forys (Root Boy) Jim "Just Say Yes" Cottrell Well, O.K. I'll compromise with my principles because of EXISTENTIAL DESPAIR! P.S. Obviously Paul Guthrie is using the wrong shell on the wrong UNIX :-)