1 .\" $NetBSD: printcap.5,v 1.24 2008/07/21 07:52:10 wiz Exp $
3 .\" Copyright (c) 1983, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)printcap.5 8.2 (Berkeley) 12/11/93
37 .Nd printer capability data base
43 data base is a simplified version of the
45 data base used to describe line printers.
46 The spooling system accesses the
48 file every time it is used, allowing dynamic
49 addition and deletion of printers.
50 Each entry in the data base is used to describe one printer.
51 This data base may not be substituted for, as is possible for
53 because it may allow accounting to be bypassed.
55 The default printer is normally
57 though the environment variable
59 may be used to override this.
60 Each spooling utility supports an option,
62 to allow explicit naming of a destination printer.
65 .%T "4.3 BSD Line Printer Spooler Manual"
66 for a complete discussion on how to set up the database for a given printer.
70 for a description of the file layout.
71 .Bl -column Name Type "/var/spool/output/lpd"
72 .It Sy Name Type Default Description
73 .It "af str" Ta Dv NULL Ta No "name of accounting file"
74 .It "br num none if lp is a tty, set the baud rate"
77 .It "cf str" Ta Dv NULL Ta No "cifplot data filter"
78 .It "df str" Ta Dv NULL Ta No "tex data filter"
81 .It "fc num 0 if lp is a tty, clear flag bits"
83 .It "ff str" Ta So Li \ef Sc Ta No "string to send for a form feed"
84 .It "fo bool false print a form feed when device is opened"
85 .It "fs num 0 like `fc' but set bits"
86 .It "gf str" Ta Dv NULL Ta No "graph data filter"
89 .It "hl bool false print the burst header page last"
90 .It "ic bool false driver supports (non standard) ioctl to indent printout"
91 .It "if str" Ta Dv NULL Ta No "name of text filter which does accounting"
92 .It "lf str" Ta Pa /dev/console Ta No "error logging file name"
93 .It "lo str" Ta Pa lock Ta No "name of lock file"
94 .It "lp str" Ta Pa /dev/lp Ta No "device name to open for output to local \
95 printer, or port@host for remote printer/printer on print server"
96 .It "ms str" Ta Dv NULL Ta No "list of terminal modes to set or clear"
97 .It "mx num 1000 maximum file size (in"
99 blocks), zero = unlimited
100 .It "nd str" Ta Dv NULL Ta No "next directory for list of queues (unimplemented)"
101 .It "nf str" Ta Dv NULL Ta No "ditroff data filter (device independent troff)"
102 .It "of str" Ta Dv NULL Ta No "name of output filtering program"
103 .It "pc num 200 price per foot or page in hundredths of cents"
104 .It "pf str" Ta Dv NULL Ta No "filter for printing"
107 .It "pl num 66 page length (in lines)"
108 .It "pw num 132 page width (in characters)"
109 .It "px num 0 page width in pixels (horizontal)"
110 .It "py num 0 page length in pixels (vertical)"
111 .It "rf str" Ta Dv NULL Ta No "filter for printing"
114 .It "rg str" Ta Dv NULL Ta No "restricted group. Only members of group allowed access"
115 .It "rm str" Ta Dv NULL Ta No "machine name for remote printer or port@host \
116 for a remote printer on a port other than the standard port."
118 also suppress the burst page, see
121 .It "rp str ``lp'' remote printer name argument"
122 .It "rs bool false restrict remote users to those with local accounts"
123 .It "rw bool false open the printer device for reading and writing"
124 .It "sb bool false short banner (one line only)"
125 .It "sc bool false suppress multiple copies"
126 .It "sd str" Ta Pa /var/spool/output/lpd Ta No "spool directory"
127 .It "sf bool false suppress form feeds"
128 .It "sh bool false suppress printing of burst page header"
133 .It "st str" Ta Pa status Ta No "status file name"
134 .It "tf str" Ta Dv NULL Ta No "troff data filter (cat phototypesetter)"
135 .It "tr str" Ta Dv NULL Ta No "trailer string to print when queue empties"
136 .It "vf str" Ta Dv NULL Ta No "raster image filter"
137 .It "xc num 0 if lp is a tty, clear local mode bits"
139 .It "xs num 0 like `xc' but set bits"
142 If the local line printer driver supports indentation, the daemon
143 must understand how to invoke it.
145 If a printer is specified via
147 (either local or remote),
150 daemon creates a pipeline of
152 to process files for various printer types.
153 The pipeline is not set up for remote printers specified via
155 unless the local host is the same as the remote printer host
157 The filters selected depend on the flags passed to
159 The pipeline set up is:
160 .Bd -literal -offset indent
161 p pr | if regular text + pr(1)
175 filter is invoked with arguments:
176 .Bd -filled -offset indent
184 .Fl h Ar host acct-file
189 flag is passed only if the
191 flag (pass control characters literally)
198 specify the page width and length
203 respectively) in characters.
208 parameters specify the login name and host name of the owner
209 of the job respectively.
212 parameter is optional and specifies the name of the print
216 option is passed from the
226 with the distinction that
231 is opened for every individual job.
234 is better suited to performing accounting.
243 All other filters are called as:
244 .Bd -filled -offset indent
250 .Fl h Ar host acct-file
257 are represented in pixels,
262 entries respectively.
276 Filters can communicate errors to lpd by their exit code and by modifying
277 the mode of the spool lock file as follows:
278 .Bl -tag -width Exit-code -compact -offset indent
284 An attempt is made to reprint the job and mail is sent if it fails.
287 silently discards the job.
290 discards the job and mail is sent.
292 .Bl -tag -width lockxmode -compact -offset indent
296 Stop printing and leave queue disabled (S_IXUSR).
298 Rebuild the queue (S_IXOTH).
301 Error messages generated by the line printer programs themselves
302 (that is, the lp* programs) are logged by
309 of one of the filters are sent to the corresponding
312 The filters may, of course, use
316 Error messages sent to the console have a carriage return and a line
317 feed appended to them, rather than just a line feed.
327 .%T "4.3 BSD Line Printer Spooler Manual"
332 flag is a function of the spooler with the locally attached printer,
333 and so has no effect when used with
336 never adds a burst page when used as a remote spooler.
337 To suppress the burst page for other systems or dedicated devices,
338 refer to the documentation for those systems or devices.
342 file format appeared in