Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nnpost(1) [debian man page]

NNPOST(1)						      General Commands Manual							 NNPOST(1)

NAME
nnpost - post news articles (nn) SYNOPSIS
nnpost [ -dksy string ] [ -f file ] [ -p ] [ group... ] DESCRIPTION
nnpost is used to post new articles using nn's normal interface, but without entering nn in reading mode. When started, it reads the init file and then directly executes nn's :post command. It will prompt for a (comma-separated) list of news groups, the article subject, a list of keywords, a summary, and the distribution of the article. Each of these prompts can also be supplied via command line options or arguments as described below. When prompted for the "Newsgroup:", entering a ? as the first key will cause nnpost to list all the known news groups and their purpose (if this information is available). You can also enter / followed by a word or regular expression which will cause nnpost to produce a (much) shorter listing only containing the groups whose name and/or purpose description matches the regular expression. When paging through either list, you can enter q to quit the listing. If a source file is specified with -f it will be used as the initial article body. If the -p option is also specified, the article is posted directly without editing. nnpost can be used to do unattended postings if sufficient arguments are provided on the command line to build the header and the body of the article. The required arguments are: one or more newsgroups, a subject (-s), a source file (-f), a distribution (-d), and the -p option. Other fields which are not specified (e.g. keywords) will not be included in the header. The contents of the news-header variable in the init file will be included in the header. OPTIONS
-d distribution Use the specified distribution for the article. -k "keywords" Associate the specified keywords with the article. -s "subject" Use the specified subject for the new article. -y "summary" Include the given summary in the article header. -f file Read the article body from the specified file. -p Post the article specified with -f without editing. FILES
~/.nn/init The control variables for nnpost. SEE ALSO
nn(1) AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark E-mail: storm@texas.dk 4th Berkeley Distribution Release 6.6 NNPOST(1)

Check Out this Related Man Page

NNCHECK(1)						      General Commands Manual							NNCHECK(1)

NAME
nncheck - check for unread articles SYNOPSIS
nncheck [ -Q -r -t ] [ -f format ] DESCRIPTION
nncheck will report if there are some articles on the system which you have not read. Without options, nncheck will simply print a message reporting the number of unread articles with the following format: There are 327 unread articles in 25 groups and when there are no unread articles, the following message will be printed: No News (is good news) nncheck will exit with a value of 0 if there are unread articles, and 99 if there is no news (see the exception for the -r option.) It is important to notice that even though unread articles have been reported by nncheck, the actual number of unread articles may be much lower (or even zero) when nn is invoked to read the articles. This is because the calculation of the number of unread articles is only based on recorded article number intervals. Invoking nn to read the articles may reveal that the articles have previously been read in another news group, have been expired, or are killed using the auto-kill facility. The following options are used to modify the amount and format of the output from nncheck: -Q Quiet operation. No output is produced, only the exit status indicate whether there is unread news. -t Print the name of each group with unread articles, and how many unread articles there are (not counting split digests!). -r Output a single integer value specifying the number of unread articles, and exit with a 0 status (somebody told me this would be useful). -f format Output the number of unread articles using the specified format. The format is a text that may contain the following %-escapes: %-code resulting output %u "uuu unread articles" %g "ggg groups" %i "is" if 1 unread article, else "are" %U "uuu" %G "ggg" where uuu is the number of unread articles, and ggg is the number of groups with unread articles. For example, the default output format is "There %i %u in %g" which I prefer to the following less perfect format: "There are %U unread article(s) in %G group(s)" FILES
~/.newsrc The record of read articles $db/MASTER The database master index SEE ALSO
nn(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1) nnadmin(1M), nnusage(1M), nnmaster(1M) AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark E-mail: storm@texas.dk 4th Berkeley Distribution Release 6.6 NNCHECK(1)
Man Page