como@bnlux0.bnl.gov (Andrew Como) (10/14/88)
Once upon a time, someone posted a method to eliminate printing the motd if it had not been changed since the last login. Will someone repost it or mail it to me. Thanks -- como@bnlux0.bnl.gov BITNET: como@bnlux0.BITNET UUCP: ....philabs!sbcs!bnl!como
tchrist@convex.UUCP (Tom Christiansen) (10/16/88)
In article <664@bnlux0.bnl.gov> como@bnlux0.UUCP (Andrew Como) writes: > Once upon a time, someone posted a method to >eliminate printing the motd if it had not been changed >since the last login. Will someone repost it or mail it >to me. put this in ~/.hushlogin: all: .hushlogin .hushlogin: /etc/motd @-cat /etc/motd @-touch .hushlogin now in .login, say "make -f ~/.hushlogin" --tom Tom Christiansen {uiucdcs,ut-sally,sun}!convex!tchrist Convex Computer Corporation tchrist@convex.COM UNIX Support, Training, and System Administration "That's not a bug -- it's a feature!"
root@conexch.UUCP (Larry Dighera) (10/17/88)
In article <664@bnlux0.bnl.gov> como@bnlux0.UUCP (Andrew Como) writes: > > Once upon a time, someone posted a method to >eliminate printing the motd if it had not been changed >since the last login. Will someone repost it or mail it >to me. > Andrew: It seems like what you really want here is /usr/bin/news. Perhaps you could: 1. cat /dev/null > /etc/motd (This will erase the contents of the message of the day file.) 2. Add the following line in /etc/profile: news (This will check for unread news and display it if it exists.) Then, to send your users news, just put a text file in /usr/news with the name of your announcement. For example, if you wanted to announce the capability of your system to support home dial-in capability, you could put the announcement in a file named WORK_FORM_HOME. Larry Dighera -- USPS: The Consultants' Exchange, PO Box 12100, Santa Ana, CA 92712 TELE: (714) 842-6348: BBS (N81); (714) 842-5851: Xenix guest account (E71) UUCP: conexch Any ACU 2400 17148425851 ogin:-""-ogin:-""-ogin: nuucp UUCP: ...!uunet!turnkey!conexch!root || ...!trwrb!ucla-an!conexch!root