# NNPOST(1) - man - phpMan

[NNPOST(1)](https://www.chedong.com/phpMan.php/man/NNPOST/1/markdown)                              General Commands Manual                             [NNPOST(1)](https://www.chedong.com/phpMan.php/man/NNPOST/1/markdown)



## 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 com‐
       mand 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** op‐
       tion.  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
              Use the specified _distribution_ for the article.

### -k
              Associate the specified _keywords_ with the article.

### -s
              Use the specified _subject_ for the new article.

### -y
              Include the given _summary_ in the article header.

### -f
              Read the article _body_ from the specified file.

### -p -f

## FILES
       ~/.nn/init   The control variables for _nnpost_.

## SEE ALSO
       [nn(1)](https://www.chedong.com/phpMan.php/man/nn/1/markdown)

## AUTHOR
       Kim F. Storm, Texas Instruments A/S, Denmark
       E-mail: <storm@texas.dk>




4th Berkeley Distribution                    Release 6.6                                   [NNPOST(1)](https://www.chedong.com/phpMan.php/man/NNPOST/1/markdown)
