Deleted Added
full compact
chkprintcap.8 (81251) chkprintcap.8 (99968)
1.\" Copyright 1997 Massachusetts Institute of Technology
2.\"
3.\" Permission to use, copy, modify, and distribute this software and
4.\" its documentation for any purpose and without fee is hereby
5.\" granted, provided that both the above copyright notice and this
6.\" permission notice appear in all copies, that both the above
7.\" copyright notice and this permission notice appear in all
8.\" supporting documentation, and that the name of M.I.T. not be used

--- 11 unchanged lines hidden (view full) ---

20.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
22.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\" Copyright 1997 Massachusetts Institute of Technology
2.\"
3.\" Permission to use, copy, modify, and distribute this software and
4.\" its documentation for any purpose and without fee is hereby
5.\" granted, provided that both the above copyright notice and this
6.\" permission notice appear in all copies, that both the above
7.\" copyright notice and this permission notice appear in all
8.\" supporting documentation, and that the name of M.I.T. not be used

--- 11 unchanged lines hidden (view full) ---

20.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
22.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/usr.sbin/lpr/chkprintcap/chkprintcap.8 81251 2001-08-07 15:48:51Z ru $
28.\" $FreeBSD: head/usr.sbin/lpr/chkprintcap/chkprintcap.8 99968 2002-07-14 14:47:15Z charnier $
29.Dd November 30, 1997
30.Dt CHKPRINTCAP 8
31.Os
32.Sh NAME
33.Nm chkprintcap
34.Nd check validity of entries in the print spooler database
35.Sh SYNOPSIS
36.Nm
37.Op Fl d
38.Op Fl f Ar printcap
39.Sh DESCRIPTION
29.Dd November 30, 1997
30.Dt CHKPRINTCAP 8
31.Os
32.Sh NAME
33.Nm chkprintcap
34.Nd check validity of entries in the print spooler database
35.Sh SYNOPSIS
36.Nm
37.Op Fl d
38.Op Fl f Ar printcap
39.Sh DESCRIPTION
40.Nm Chkprintcap
41scans a
40The
41.Nm
42utility scans a
42.Xr printcap 5
43database
44(named by the
45.Ar printcap
46argument, or by default
47.Pa /etc/printcap ) ,
48looking for entries which are invalid in one way or another.
49The following checks are currently implemented:

--- 5 unchanged lines hidden (view full) ---

55.Sq Li tc=
56references did not form a loop
57.It
58No two printers share the same spool directory
59.Sq ( Li sd=
60capability).
61.El
62.Pp
43.Xr printcap 5
44database
45(named by the
46.Ar printcap
47argument, or by default
48.Pa /etc/printcap ) ,
49looking for entries which are invalid in one way or another.
50The following checks are currently implemented:

--- 5 unchanged lines hidden (view full) ---

56.Sq Li tc=
57references did not form a loop
58.It
59No two printers share the same spool directory
60.Sq ( Li sd=
61capability).
62.El
63.Pp
63.Nm Chkprintcap
64exits with a status equal to the number of errors encountered before
64The
65.Nm
66utility exits with a status equal to the number of errors encountered before
65processing stopped. (In some cases, processing can stop before the
66entire file is scanned.)
67.Pp
68If the
69.Fl d
70flag is given,
71.Nm
72will attempt to create any missing spool directories, giving them

--- 6 unchanged lines hidden (view full) ---

79.Sq Li daemon ) .
80.Sh SEE ALSO
81.Xr lpr 1 ,
82.Xr printcap 5 ,
83.Xr lpd 8
84.Sh AUTHORS
85The
86.Nm
67processing stopped. (In some cases, processing can stop before the
68entire file is scanned.)
69.Pp
70If the
71.Fl d
72flag is given,
73.Nm
74will attempt to create any missing spool directories, giving them

--- 6 unchanged lines hidden (view full) ---

81.Sq Li daemon ) .
82.Sh SEE ALSO
83.Xr lpr 1 ,
84.Xr printcap 5 ,
85.Xr lpd 8
86.Sh AUTHORS
87The
88.Nm
87command was written by
89utility was written by
88.An Garrett A. Wollman Aq wollman@lcs.mit.edu .
89.Sh BUGS
90Not enough sanity-checking is done. At a minimum, the ownership and
91mode of the spool directories should also be checked. Other
92parameters whose value could cause
93.Xr lpd 8
94to fail should be diagnosed.
90.An Garrett A. Wollman Aq wollman@lcs.mit.edu .
91.Sh BUGS
92Not enough sanity-checking is done. At a minimum, the ownership and
93mode of the spool directories should also be checked. Other
94parameters whose value could cause
95.Xr lpd 8
96to fail should be diagnosed.