Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!cmcl2!rutgers!clyde!cbosgd!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: comp.unix.wizards Subject: Messages/News program for Suns Message-ID: <2773@ncoast.UUCP> Date: Fri, 3-Jul-87 22:31:47 EDT Article-I.D.: ncoast.2773 Posted: Fri Jul 3 22:31:47 1987 Date-Received: Sun, 5-Jul-87 07:39:27 EDT References: <8082@brl-adm.ARPA> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.unix.wizards Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 40 As quoted from <8082@brl-adm.ARPA> by MANSFIEL%EMBL.BITNET@wiscvm.wisc.EDU (Niall Mansfield): +--------------- | It seems there is a 'news' facility on SysV, but I can't | find anything equivalent on our SunOS 3.3 system. (Someone | a while back mentioned a 'msgs' program - in the context of | replacing the motd file - but I haven't been able to reach | them). +--------------- A simple "news" program is in K&P (for non-initiates: THE UNIX PROGRAMMING ENVIRONMENT by Brian Kernighan and Rob Pike). It's a shell script, but it does most of what SysV "news" does, and translating to C shouldn't be too hard. On the other hand, you can pull a few other things: "rn general" (!) ua (!!) -- use the bulletins for important stuff and the less important (or specific to some department, or details of the bulletins, etc.) in the message base a shell script: cd /usr/bulletins find . -newer $HOME/.last_bulletins -exec echo bulletin: '{}' ';' -exec more '{}' ';' touch $HOME/.last_bulletins # this needs some work to be really useful # it is also a very cheap "news" Necessity is the mother of invention. ++Brandon -- ---- Moderator for comp.sources.misc and comp.binaries.ibm.pc ---- Brandon S. Allbery!cbosgd!hal!ncoast!allbery ('til Aug. 1) aXcess Company {ames,mit-eddie,harvard,talcott}!necntc!ncoast!allbery 6615 Center St. #A1-105 {well,sun,pyramid,ihnp4}!hoptoad!ncoast!allbery Mentor, OH 44060-4101 necntc!ncoast!allbery@harvard.HARVARD.EDU (Internet) +01 216 974 9210 ncoast!allbery@CWRU.EDU (CSnet -- if you dare) NCOAST ADMIN GROUP Brandon Allbery on 157/504 (Fidonet/Matrix/whatever) * ncoast -- Public Access UN*X -- (216) 781-6201, 24 hrs., 300/1200/2400 baud * * ncoast is proud to be carrying alt.all -- contact me for more information *