chkprintcap(8) [freebsd man page]
CHKPRINTCAP(8) BSD System Manager's Manual CHKPRINTCAP(8) NAME
chkprintcap -- check validity of entries in the print spooler database SYNOPSIS
chkprintcap [-d] [-f printcap] DESCRIPTION
The chkprintcap utility scans a printcap(5) database (named by the printcap argument, or by default /etc/printcap), looking for entries which are invalid in one way or another. The following checks are currently implemented: 1. 'tc=' references were properly expanded 2. 'tc=' references did not form a loop 3. No two printers share the same spool directory ('sd=' capability). The chkprintcap utility exits with a status equal to the number of errors encountered before processing stopped. (In some cases, processing can stop before the entire file is scanned.) If the -d flag is given, chkprintcap will attempt to create any missing spool directories, giving them 'u=rwx,go=rx' (0755) mode, group 'daemon', and the owner specified by the 'du=' capability in the database (default 1, which corresponds to user 'daemon'). SEE ALSO
lpr(1), printcap(5), lpd(8) AUTHORS
The chkprintcap utility was written by Garrett A. Wollman <wollman@lcs.mit.edu>. BUGS
Not enough sanity-checking is done. At a minimum, the ownership and mode of the spool directories should also be checked. Other parameters whose value could cause lpd(8) to fail should be diagnosed. BSD
November 30, 1997 BSD
Check Out this Related Man Page
conv_lpd(1M) System Administration Commands conv_lpd(1M) NAME
conv_lpd - convert LPD configuration SYNOPSIS
conv_lpd [-c printers | -c printcap] [-n] file DESCRIPTION
conv_lpd converts LPD printer configuration information from file to a printers.conf or a printcap file (see printers.conf(4)). file specifies the name of the input file, and can be either in printers.conf or printcap format. If file is in printers.conf format, it con- verts it to a printcap file. If file is in printcap format, it converts it to a printers.conf file. OPTIONS
The following options are supported: -c printers | -c printcap Specifies the type of output file produced by the conversion. -c printers converts to a printers.conf file. -c printcap converts to a printcap file. -c printers is the default. -n Preserves the namelist during the conversion. OPERANDS
The following operands are supported: file The file to be converted. EXAMPLES
Example 1: Converting a printcap file to a printers.conf file. The following example converts a printcap file to a printers.conf file. example% conv_lpd /etc/printcap Example 2: Converting a printcap file to a printers.conf file and preserving the namelist. The following example converts a printcap file to a printers.conf file and preserves the namelist. example% conv_lpd -c printers -n /etc/printcap Example 3: Converting a printers.conf file to a printcap file and preserving the namelist. The following example converts a printers.conf file to a printcap file and preserves the namelist. example% conv_lpd -c printcap -n /etc/printers.conf EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/etc/printers.conf System printer configuration database. /etc/printcap SunOS 4.x printer capability database. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ SEE ALSO
lpset(1M), printers.conf(4), attributes(5) SunOS 5.10 9 Sep 1996 conv_lpd(1M)