motd

Larry Dighera root at conexch.UUCP
Mon Oct 17 22:34:15 AEST 1988


In article <664 at bnlux0.bnl.gov> como at 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



More information about the Comp.unix.questions mailing list