1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)printcap.5 8.2 (Berkeley) 12/11/93
36 .Nd printer capability data base
43 is a simplified version of the
46 used to describe line printers.
47 The spooling system accesses the
49 file every time it is used, allowing dynamic
50 addition and deletion of printers.
51 Each entry in the data base
52 is used to describe one printer.
53 This data base may not be
54 substituted for, as is possible for
56 because it may allow accounting to be bypassed.
58 The default printer is normally
60 though the environment variable
62 may be used to override this.
63 Each spooling utility supports an option,
65 to allow explicit naming of a destination printer.
68 .%T "4.3 BSD Line Printer Spooler Manual"
69 for a complete discussion on how to setup the database for a given printer.
73 for a description of the file layout.
74 .Bl -column Namexxx Typexx "/var/spool/lpdxxxxx"
75 .Sy "Name Type Default Description"
76 .It "af str" Ta Dv NULL Ta No "name of accounting file"
77 .It "br num none if lp is a tty, set the baud rate"
80 .It "cf str" Ta Dv NULL Ta No "cifplot data filter"
81 .It "ct num 120 TCP connection timeout in seconds"
82 .It "df str" Ta Dv NULL Ta No "tex data filter"
85 .It "ff str" Ta So Li \ef Sc Ta No "string to send for a form feed"
86 .It "fo bool false print a form feed when device is opened"
87 .It "gf str" Ta Dv NULL Ta No "graph data filter"
90 .It "hl bool false print the burst header page last"
91 .It "ic bool false driver supports (non standard) ioctl to indent printout"
92 .It "if str" Ta Dv NULL Ta No "name of text filter which does accounting"
93 .It "lf str" Ta Pa /dev/console Ta No "error logging file name"
94 .It "lo str" Ta Pa lock Ta No "name of lock file"
95 .It "lp str" Ta Pa /dev/lp Ta No "device name to open for output, or" Em port Ns @ Ns Em machine No "to open a TCP socket"
96 .It "mc num 0 maximum number of copies which can be requested on"
99 .It "ms str" Ta Dv NULL Ta No "if lp is a tty, a comma-separated,"
101 list describing the tty modes
102 .It "mx num 0 maximum file size (in"
104 blocks), zero = unlimited
105 .It "nd str" Ta Dv NULL Ta No "next directory for list of queues (unimplemented)"
106 .It "nf str" Ta Dv NULL Ta No "ditroff data filter (device independent troff)"
107 .It "of str" Ta Dv NULL Ta No "name of output filtering program"
108 .It "pc num 200 price per foot or page in hundredths of cents"
109 .It "pl num 66 page length (in lines)"
110 .It "pw num 132 page width (in characters)"
111 .It "px num 0 page width in pixels (horizontal)"
112 .It "py num 0 page length in pixels (vertical)"
113 .It "rc bool false when sending to a remote host, resend copies (see below)"
114 .It "rf str" Ta Dv NULL Ta No "filter for printing"
117 .It "rg str" Ta Dv NULL Ta No "restricted group. Only members of group allowed access"
118 .It "rm str" Ta Dv NULL Ta No "machine name for remote printer"
119 .It "rp str" Ta Pa lp Ta No "remote printer name argument"
120 .It "rs bool false restrict remote users to those with local accounts"
121 .It "rw bool false open the printer device for reading and writing"
122 .It "sb bool false short banner (one line only)"
123 .It "sc bool false suppress multiple copies"
124 .It "sd str" Ta Pa /var/spool/lpd Ta No "spool directory"
125 .It "sf bool false suppress form feeds"
126 .It "sh bool false suppress printing of burst page header"
127 .It "sr str" Ta Dv NULL Ta No "file name to hold statistics of each datafile as it is received"
128 .It "ss str" Ta Dv NULL Ta No "file name to hold statistics of each datafile as it is sent"
129 .It "st str" Ta Pa status Ta No "status file name"
130 .It "tf str" Ta Dv NULL Ta No "troff data filter (cat phototypesetter)"
131 .It "tr str" Ta Dv NULL Ta No "trailer string to print when queue empties"
132 .It "vf str" Ta Dv NULL Ta No "raster image filter"
135 Each two-letter capability has a human-readable alternate name.
136 .Bl -column "Short form" "Long form"
137 .Sy "Short form Long form"
140 .It "cf filt.cifplot"
141 .It "ct remote.timeout"
144 .It "ff job.formfeed"
145 .It "fo job.topofform"
155 .It "nf filt.ditroff"
161 .It "py page.plength"
162 .It "rc remote.resend_copies"
163 .It "rf filt.fortran"
164 .It "rg daemon.restrictgrp"
166 .It "rp remote.queue"
167 .It "rs daemon.restricted"
169 .It "sb banner.short"
170 .It "sc job.no_copies"
172 .It "sf job.no_formfeed"
173 .It "sh banner.disable"
176 .It "st spool.status"
182 If the local line printer driver supports indentation, the daemon
183 must understand how to invoke it.
187 daemon creates a pipeline of
189 to process files for various printer types.
190 The filters selected depend on the flags passed to
192 The pipeline set up is:
193 .Bd -literal -offset indent
194 p pr | if regular text + pr(1)
207 filter is invoked with arguments:
208 .Bd -ragged -offset indent
215 .Fl h Ar host acct-file
220 flag is passed only if the
222 flag (pass control characters literally)
230 specify the page width and length
235 respectively) in characters.
240 parameters specify the login name and host name of the owner
241 of the job respectively.
255 with the distinction that
260 is opened for every individual job.
263 is better suited to performing accounting.
272 All other filters are called as:
273 .Bd -ragged -offset indent
278 .Fl h Ar host acct-file
285 are represented in pixels,
290 entries respectively.
304 When printing to a remote printer using
306 it is possible to use either
310 If both are specified,
313 Both filters behave the same except that they are passed
314 different arguments as above.
315 Specifically, the output filter is
316 terminated and restarted for each file transmitted.
318 in order to pass the resulting size to the remote
326 is not executed locally, but is requested of the remote
328 Any input filtering via
330 will therefore happen before
332 is executed rather than afterwards.
334 There are some models of network printers which accept jobs from
336 but they ignore the control file for a job and simply print
337 each data file as it arrives at the printer.
338 One side-effect of this behavior is that the printer will ignore any request
339 for multiple copies as given with the
348 to resend each data file for each copy that the user
349 originally requested.
352 entry should only be specified on hosts which send jobs directly to
358 .Em port Ns @ Ns Em machine
361 is not in use), print data will be sent directly to the given
365 .Sh TRANSFER STATISTICS
366 When a print job is transferred to a remote machine (which might be
367 another unix box, or may be a network printer), it may be useful
368 to keep statistics on each transfer.
373 options indicate filenames that lpd should use to store such
375 A statistics line is written for each datafile of a
376 job as the file is successfully transferred.
378 line is the same for both the sending and receiving side of a
381 Statistics on datafiles being received would be used on a print
382 server, if you are interested in network performance between a
383 variety of machines which are sending jobs to that print server.
384 The print server could collect statistics on the speed of each
385 print job as it arrived on the server.
387 Statistics on datafiles being sent might be used as a minimal
388 accounting record, when you want to know who sent which jobs to a
389 remote printer, when they were sent, and how large (in bytes) the
391 This will not give include any idea of how many pages
392 were printed, because there is no standard way to get that information
393 back from a remote (network) printer in this case.
395 Error messages generated by the line printer programs themselves
398 and related programs)
406 of one of the filters
407 are sent to the corresponding
410 The filters may, of course, use
414 Error messages sent to the console have a carriage return and a line
415 feed appended to them, rather than just a line feed.
427 .%T "4.3 BSD Line Printer Spooler Manual"
432 file format appeared in