Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CHKPRINTCAP(8)		    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 cur-
       rently 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=' capa-
		  bility).

       The chkprintcap utility exits with a status equal to the	number of  er-
       rors 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	 data-
       base (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.

FreeBSD	14.3		       November	30, 1997		CHKPRINTCAP(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=chkprintcap&sektion=8&manpath=FreeBSD+14.3-RELEASE+and+Ports>

home | help