Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!boulder!forys From: forys@sigi.Colorado.EDU (Jeff Forys) Newsgroups: comp.unix.questions Subject: Re: Suppressing the message of the day. Message-ID: <1100@sigi.Colorado.EDU> Date: Thu, 14-May-87 20:47:40 EDT Article-I.D.: sigi.1100 Posted: Thu May 14 20:47:40 1987 Date-Received: Sat, 16-May-87 12:14:52 EDT References: <15452@brunix.UUCP> <1506@uwmacc.UUCP> Reply-To: forys@boulder.Colorado.EDU (Jeff Forys) Organization: University of Colorado, Boulder Lines: 20 Summary: When *what* changes?? 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". 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 --- Jeff Forys @ UC/Boulder Engineering Research Comp Cntr (303-492-6096) forys@Boulder.Colorado.EDU -or- ..!{hao|nbires}!boulder!forys