archive - Usenet article archiver
archive [ -a archive ] [ -f ] [ -i index ] [ -m ] [ -r ] [ input ]
Archive makes copies of files specified on its standard input. It is normally run either as a channel feed under innd(8), or by a script before expire(8) is run. Archive reads the named input file, or standard input if no file is given. The input is taken as a set of lines. Blank lines and lines starting with a number sign (``#'') are ignored. All other lines should specify the name of a file to archive. If a filename is not an absolute pathname, it is taken to be relative to /var/spool/news. Files are copied to a directory within the archive directory, /var/spool/news/news.archive. The default is to create a hierarchy that mimics the input files; intermediate directories will be created as needed. For example, the input file comp/sources/unix/2211 (article 2211 in the newsgroup comp.sources.unix) will be copied to /var/spool/news/news.archive/comp/sources/unix/2211.
-a archive If the ``-a'' flag is used then its argument specifies the directory to archive in instead of the default. -f If the ``-f'' flag is used, then all directory names will be flattened out, replacing the slashes with periods. In this case, the file would be copied to /var/spool/news/news.archive/comp.sources.unix/2211. -i If the ``-i'' flag is used, then archive will append one line to the specified index file for each article that it copies. This line will contain the destination name and the Message-ID and Subject headers. -m Files are copied by making a link. If that fails a new file is created. If the ``-m'' flag is used, then the file will be copied to the destination, and the input file will be replaced with a symbolic link pointing to the new file. -r By default, archive sets its standard error to /var/log/news/errlog. To suppress this redirection, use the ``-r'' flag.
If the input is exhausted, archive will exit with a zero status. If an I/O error occures, it will try to spool its input, copying it to a file. If there was no input filename, the standard input will be copied to /var/spool/news/out.going/archive and the program will exit. If an input filename was given, a temporary file named input.bch (if input is an absolute pathname) or /var/spool/news/out.going/input.bch (if the filename does not begin with a slash) is created. Once the input is copied, archive will try to rename this temporary file to be the name of the input file, and then exit.
A typical newsfeeds(5) entry to archive most source newsgroups is as follows: source-archive\ :!*,*sources*,!*wanted*,!*.d\ :Tc,Wn\ :/usr/lib/news/bin/archive -f -i \ /usr/spool/news/news.archive/INDEX
Written by Rich $alz <firstname.lastname@example.org> for InterNetNews. This is revision 1.14, dated 1996/10/29.
More Linux Commands
Tcl_FSLstat(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta
attr(1) - extended attributes on XFS filesystem objects.....
The attr utility allows the manipulation of extended attributes associated with filesystem objects from within shell scripts. There are four main operations tha
nntpd(8) - NNTP server process (Admin - Linux man page).....
Nntpd is a NNTP server. It accepts commands on its standard input and responds on its standard output. It MUST invoked by master(8) with those descriptors attac
glCallLists(3gl) - execute a list of display lists (ManPage)
glCallLists causes each display list in the list of names passed as lists to be executed. As a result, the commands saved in each display list are executed in o
uuid_compare(3) - compare whether two UUIDs are the same....
The uuid_compare function compares the two supplied uuid variables uu1 and uu2 to each other. RETURN VALUE Returns an integer less than, equal to, or greater th
cirrus(4) - Cirrus Logic video driver - Linux manual page...
cirrus is an Xorg driver for Cirrus Logic video chips. THIS MAN PAGE NEEDS TO BE FILLED IN. SUPPORTED HARDWARE The cirrus driver supports... CONFIGURATION DETAI
pamgauss(1) - create a two dimensional gaussian function as
This program is part of Netpbm(1) pamgauss generates a one-plane PAM image whose samples are a gaussian function of their distance from the center of the image.
XkbChangeDeviceInfo(3) - Update the server's description of
XkbChangeDeviceInfo updates the servers description of the device specified in device_info->device_spec with the changes specified in changes and contained in d
asinh(3) - inverse hyperbolic sine function - Linux man page
The asinh() function calculates the inverse hyperbolic sine of x; that is the value whose hyperbolic sine is x. RETURN VALUE On success, these functions return
radius(8) - nnrpd RADIUS password authenticator (Man Page)
radius is an nnrpd authenticator, accepting a username and password from nnrpd (given to nnrpd by a reader connection) and attempting to authenticate that usern
gnutls_pkcs11_copy_secret_key(3) - API function (Man Page)
This function will copy a raw secret (symmetric) key into a PKCS 11 token specified by a URL. The key can be marked as sensitive or not. RETURNS On success, GNU
mvwdelch(3ncurses) - delete character under the cursor in a
These routines delete the character under the cursor; all characters to the right of the cursor on the same line are moved to the left one position and the last