Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

news(1) [debian man page]

NEWS(1) 							   USER COMMANDS							   NEWS(1)

NAME
news - display system news SYNOPSIS
news [-adDeflnpvxs] [[article1] [article2] ..] DESCRIPTION
The news command keeps you informed of news concerning the system. Each news item is contained in a separate file in the /var/lib/sysnews directory. Anyone having write permission to this directory can create a news file. If you run the news command without any flags, it displays every unread file in the /var/lib/sysnews directory. Each file is preceded by an appropriate header. To avoid reporting old news, the news command stores a currency time. The news command con- siders your currency time to be the date the $HOME/.news_time file was last modified. Each time you read the news, the modification time of this file changes to that of the reading. Only news item files posted after this time are considered unread. OPTIONS
-a, --all Display all news, also the already read news. -d, --datestamp Add a date stamp to each article name printed. this can only be used with the -nl flags. -D, --datefmt <fmt> Specify a date format, see the strftime(3) man page for more details. the default format is (%b %d %Y) -f, --newsdir <dir> Read news from an alternate newsdir. -l, --oneperline One article name per line. -n, --names Only show the names of news articles. -p, --page Pipe articles through $PAGER or more(1) if the $PAGER environment variable is not set. -s, --articles Reports the number of news articles. MAINTAINER OPTIONS
-e, --expire # Expire news older than # days. -x, --exclude a,b,c A comma separated list of articles which may not be expired. if a file named .noexpire exists in the /var/lib/sysnews direcory, filenames are read from it also. names in this file may be comma separated, and/or one per line. AUTHOR
Charles, <int@link.xs4all.nl> Linux 18 January 1995 NEWS(1)

Check Out this Related Man Page

RC.NEWS(8)						    InterNetNews Documentation							RC.NEWS(8)

NAME
rc.news - Start or stop INN daemons SYNOPSIS
rc.news [start | stop] DESCRIPTION
rc.news can be used to start or stop innd and supporting programs. It checks to make sure INN is not already running, handles cases of unclean shutdown, finishes up tasks which might have been interrupted by the preceding shutdown, e-mails certain boot-time warnings to newsmaster (as set in inn.conf), and is generally safer and easier than starting and stopping everything directly. It needs to be run as the news user so that files in pathrun are created with the right ownership (though this is less important for "rc.news stop"). Programs run and stopped by this script include: o Always: innd is started or stopped. o If doinnwatch is true in inn.conf: innwatch is started and stopped. o If docnfsstat is true in inn.conf: cnfsstat is started and stopped. o If ovmethod is set to "ovdb" in inn.conf: ovdb_init is run; ovdb_server and ovdb_monitor are stopped. o If rc.news.local exists in pathbin: rc.news.local is run with argument "start" or "stop" (to perform site-specific startup or shutdown tasks). OPTIONS
"start" If the first argument is "start", or no first argument is given, rc.news initiates INN startup. "stop" If the first argument is "stop", rc.news initiates INN shutdown. It is recommended to throttle the server first as described in ctlinnd(8). EXAMPLES
To start INN and leave certain error messages going to the terminal: su - news -c <pathbin in inn.conf>/rc.news To run INN at startup time from appropriate system boot scripts: su - news -c <pathbin>/rc.news >/dev/console To stop INN (throttling first): <pathbin>/ctlinnd throttle reason su - news -c '<pathbin>/rc.news stop' BUGS
Running "rc.news start" as root is never the right thing to do, so we should at minimum check for this and error, or perhaps change effective user ID. HISTORY
// FIXME: any attribution for rc.news itself? This manual page written by Jeffrey M. Vinocur <jeff@litech.org> for InterNetNews. $Id: rc.news.pod 9340 2011-08-16 13:50:19Z iulius $ SEE ALSO
ctlinnd(8), cnfsstat(8), inn.conf(5), innwatch(8), ovdb(5). INN 2.5.3 2011-08-22 RC.NEWS(8)
Man Page