checkpc
validate printcap database and spool directories
TLDR
Check the printcap database for errors
SYNOPSIS
checkpc [-aflprsV] [-A age] [-D debugflags] [-t size]
DESCRIPTION
checkpc validates the printcap database and printer spool directories for the LPRng print system. It checks file permissions, ownership, and directory structure, reporting problems and optionally fixing them.
The command is useful when installing a new printcap configuration or cleaning up existing printer spoolers. It can identify and remove stale job files and truncate oversized log files.
PARAMETERS
-a
Do not create accounting files-f
Fix mode: create missing files and fix permissions. May need multiple runs-l
Do not create log files-p
Print verbose printcap information-r
Remove junk or job files older than age (requires -A)-s
Do not create filter status files-A age
Report files older than age. Suffix: D (days), H (hours), M (minutes), S (seconds). Default: days-D debugflags
Enable debugging flags-t size
Truncate log files to size in K (kilobytes) or M (megabytes, default)-V
Print version information
CONFIGURATION
/etc/printcap
Printer capability database that checkpc validates and checks for errors.
CAVEATS
The -f option should be run as root. Running as non-root will report many permission failures. Part of LPRng, not CUPS. Systems with both installed may have conflicts.
HISTORY
checkpc is part of LPRng (LPR Next Generation), an enhanced printer spooler system with functionality similar to the original Berkeley LPR software but with additional features and improved security.
