Newsgroups: comp.unix.admin Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!druid!darcy From: darcy@druid.uucp (D'Arcy J.M. Cain) Subject: Re: something like motd question Message-ID: <1991May18.122527.4183@druid.uucp> Organization: D'Arcy Cain Consulting, West Hill, Ontario References: <1746@targon.UUCP> <1991May17.154942.18203@logixwi.uucp> <1991May17.230644.15016@unixland.uucp> Date: Sat, 18 May 91 12:25:27 GMT In article <1991May17.230644.15016@unixland.uucp> Bill Heiser writes: >news: index logins numbers > >doesn't really mean much to the novice users among my users... It isn't necessary for the users to know how to use news. Simply create your message files in the correct directory (/usr/news) and put this line in /etc/profile: news this will print all the files in /usr/news that this user hasn't seen yet. You probably already have something like "news -n" in your /etc/profile which will cause a list of unread news to be listed on the user's terminal when they log in. The can then type "news" if they wish to read them. Read the man page on news for details. Here is a possible script to hold the user's hand (off the top of my head): if [ ! "`news -s`" = "No news." ] then echo "The following news articles have not been read by you:" news -n echo "\nDo you want to read them now? [y]\c" read ans if [ "$ans" = "y" -o "$ans" = "Y" -o "$ans" = "" ] then clear news else echo "When ready to read news enter \"news\" at any prompt" fi fi -- D'Arcy J.M. Cain (darcy@druid) | D'Arcy Cain Consulting | There's no government Toronto, Ontario, Canada | like no government! +1 416 424 2871 |