Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!MARSELLE%gmr.com@RELAY.CS.NET From: MARSELLE%gmr.com@RELAY.CS.NET Newsgroups: comp.unix.questions Subject: .hushlogin Message-ID: <7409@brl-adm.ARPA> Date: Fri, 15-May-87 16:14:27 EDT Article-I.D.: brl-adm.7409 Posted: Fri May 15 16:14:27 1987 Date-Received: Sun, 17-May-87 00:27:03 EDT Sender: news@brl-adm.ARPA Lines: 58 The other day I read someone's suggestion to use a "make -f .hushlogin" in the .login file to only print out /etc/motd when its last mod time changes. Since no further advice regarding what .hushlogin should look like was provided, I did a little hacking. If I use a .hushlogin which looks like this: .hushlogin: /etc/motd cat /etc/motd touch .hushlogin I get: Make: No arguments or description file. Stop. I thought it might have something to do with the '.' in the first column, so I tried: hushlogin: /etc/motd cat /etc/motd touch .hushlogin hushlogin which works fine, but uses a 2nd file "hushlogin". If I put a backslash in front of the '.' like so: \.hushlogin: /etc/motd cat /etc/motd touch .hushlogin it always cat's and touch'es. Are there any "make" aces out there that know what's going on here? BTW, I noticed that if you have a .hushlogin, the "You have mail" message is also suppressed when you login, so I put the "mail" command into my .login. Also, even if you use "make -s -f .hushlogin" to suppress the make chatter, make will still print out "`.hushlogin' is up to date" when you log in and /etc/motd hasn't been changed. I think I'll switch to someone else's suggestion and try: cmp -s .hushlogin /etc/motd if ($status) then cat /etc/motd | tee .hushlogin endif then I won't have to deal with make. ____________________________________________________ |Jim Marselle | Phone: (313) 986-1413 | |GM Research Labs | csnet: marselle@gmr.com | |Computer Science Dept. | | |30500 Mound Road | | |Warren, MI 48090-9057 | | ----------------------------------------------------