Xref: utzoo comp.unix.wizards:11790 comp.unix.questions:9786 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!oberon!cit-vax!elroy!peregrine!ccicpg!turnkey!conexch!root From: root@conexch.UUCP (Larry Dighera) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: motd Message-ID: <9476@conexch.UUCP> Date: 17 Oct 88 12:34:15 GMT References: <664@bnlux0.bnl.gov> Reply-To: root@conexch.UUCP (Larry Dighera) Organization: The Consultants' Exchange, Orange County, CA. (714) 842-6348 Lines: 36 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