Section: Maintenance Commands (8)Updated: Harold TayLocal indexUp
snfetch - fetch articles.
group [serial [max]]
expects to read NNTP from file descriptor 6, and write NNTP to file
descriptor 7, which descriptors must have already been open.
Articles retrieved are written to descriptor 1.
Each article displayed is separated from the next by a
dot on a line by itself. These articles are NNTP safe, in the sense
that double-dot unquoting is not done, and all lines end in CR-LF.
expects to begin it's NNTP speech by giving the GROUP command. The
upstream server's greeting must have already been read some other
way. Likewise, when
is done, it will not send a QUIT command.
The output is suitable for feeding to
always checks the article ID of the prospective article before
retrieving it. If the ID already exists in the ID database, the
article will not be retrieved. Note that this does
guarantee that all articles retrieved will be unique.
does not guarantee to leave the NNTP conversation in a decent state
(there might be more data to read, but
aborted part way).
You will need to be root or own /var/spool/sn in order to run this program.
It is not safe to direct the output of several
to the same pipe descriptor, but a file descriptor is all right.
will wait only
seconds (default 180) for data before giving up, if the server doesn't
Output in news batch format instead. All articles will take the
form only, even if there is just one article, all lines end in
bare linefeed, and dot-unquoting is performed.
Employ a command pipeline of depth
NNTP command pipelining is not officially sanctioned, so by default
no pipeline is used. However, a pipeline with a
greater than 0 will substantally reduce transaction latency
the server accepts it. A respectable value for
might be between 1 and 5.
takes the name of a single newsgroup on its command line. If
is given, this is taken to be the first article number on
on the server to fetch.
is specified, this is taken to be the maximum number of articles to
fetch. The first article retrieved may be after
would be violated. If
is not specified, there is no limit.
If this is set and is not empty, the value is used in place of
the default news spool directory.
is not specified, the starting serial number is taken from the file
This defaults to
if the file can't be read.
exits with success (0), the new
is written into this file.
The original file
is readonly by
is not specified on the command line,
is read from this file.
If the file cannot be read or does not
exist, there is no limit.
exits 1 on usage error, 2 on system failure, 3 on protocol error,
4 on read timeout, and 0 on success.