Интерактивная система просмотра системных руководств (man-ов)
chkprintcap (8)
>> chkprintcap (8) ( FreeBSD man: Команды системного администрирования )
BSD mandoc
NAME
chkprintcap
- check validity of entries in the print spooler database
SYNOPSIS
[-d
]
[-f printcap
]
DESCRIPTION
The
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:
`tc=
'
references were properly expanded
`tc=
'
references did not form a loop
No two printers share the same spool directory
`( sd=
'
capability).
The
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,
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
'
The
utility was written by
An Garrett A. Wollman Aq [email protected] .
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.