Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

newsrequeue(8) [debian man page]

NEWSREQUEUE(8)						      System Manager's Manual						    NEWSREQUEUE(8)

NAME
newsrequeue - tool to rewrite batchfiles. SYNOPSIS
newsrequeue [ -a active ] [ -h history ] [ -d days ] [ -l ] [ -n newsfeeds ] [ input ] DESCRIPTION
Newsrequeue can be used to rewrite batchfiles after a system crash. It operates in two modes. In the first mode, it first reads the active (5) and newsfeeds(5) files to determine where the different newsgroups are to be distributed. It then opens the history database. Once the files are opened, newsrequeue reads from the specified input file, or standard input if no file is specified. Each line should have a single Message-ID, surrounded in angle brackets; any other text on the line is ignored. For example, the history file (or trailing subset of it) is acceptable input to the program operating in this mode. Newsrequeue uses the first two fields of the newsfeed entry -- the sitename and the excludes field, and the patterns and distribs field. It ignores all flags in the third field except for the ``N'' field, and also ignores the fourth field altogether. The output of newsrequeue consists of one line for each article that should be forwarded. Each such line contains the Message-ID, the filename, and the list of sites that should receive the article. The output is suitable for piping into filechan(8). The second mode is used if the ``-l'' flag is given. In this mode, it reads from the specified input file, or standard input if no file is specified. Each line should look like an innd log entry. It parses entries for accepted articles, looks up the Message-ID in the history database to get the filename, and then scans the list of sites. OPTIONS
-a To specify alternate locations for the active file, use the ``-a'' flag. -n Use the ``-n'' flag to specify an alternate location for the newsfeeds(8) file. -h Use the ``-h'' flag to specify a different location for the history database, -d If the ``-d'' flag is used, then only articles that were received within the specified number of days will be processed. -l Read innd type log entries instead of a history-file like entries. HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.2, dated 1996/10/29. SEE ALSO
active(5), ctlinnd(8), dbz(3), filechan(8), history(5), innd(8), newsfeeds(5), makeactive(8), makehistory(8). NEWSREQUEUE(8)

Check Out this Related Man Page

MAKEACTIVE(8)						      System Manager's Manual						     MAKEACTIVE(8)

NAME
makeactive - tool to recover Usenet active file. SYNOPSIS
makeactive [ -m ] [ -o ] DESCRIPTION
Makeactive invokes find(1) to get a list of all directories in the news spool tree, /var/spool/news. It discards directories named lost+found as well as those that have a period in them. It scans all other directories for all-numeric filenames and determines the high- est and lowest number. The program's output is a set of active(5) file lines. Because there is no way to know if a group is moderated or disabled, the fourth field of all entries will be y. Also, mid-level directories that aren't newsgroups will also created as newsgroups with no entries (for example, there is a ``comp.sources.unix'' group, but no ``comp.sources''). OPTIONS
-m If the ``-m'' flag is given, then makeactive will attempt to adjust the highest and lowest article numbers wherever possible. If articles are found in a newsgroup, the numbers will reflect what what was found. If no articles are found in a newsgroup, the high number from the old file will be kept, and the low number will be set to one more then the high number. This flag may only be used if the ``-o'' flag is used. -o If the ``-o'' flag is used, makeactive will read an existing active file for the list of group names and just renumber all groups. It will preserve the fourth field of the active file if one is present. This is analogous to the ctlinnd(8) ``renumber'' command, except that innd(8) should throttled or not running. Do not use this flag with output redirected to the standard active file! EXIT STATUS
Makeactive exits with non-zero status if any problems occurred. EXAMPLES
A typical way to use the program is with the following /bin/sh commands: ctlinnd throttle "Rebuilding active file" TEMP=${TMPDIR-/var/spool/news/in.coming/tmp}/act$$ if [ -f /var/lib/news/active ] ; then if makeactive -o >${TEMP} ; then mv ${TEMP} /var/lib/news/active fi else if makeactive >${TEMP} ; then # Edit to restore moderated # and aliased groups. ... mv ${TEMP} /var/lib/news/active fi fi ctlinnd reload active "New active file" ctlinnd go '' HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.3, dated 1996/10/29. SEE ALSO
active(5), ctlinnd(8), dbz(3), filechan(8), history(5), innd(8), newsfeeds(5), makehistory(8), newsrequeue(8). MAKEACTIVE(8)
Man Page