|
NAMEprintcap —
printer capability data base
SYNOPSIS
DESCRIPTIONThePrintcap function is a simplified version of the
termcap(5)
data base used to describe line printers. The spooling system accesses the
printcap file every time it is used, allowing dynamic
addition and deletion of printers. Each entry in the data base is used to
describe one printer. This data base may not be substituted for, as is
possible for
termcap(5),
because it may allow accounting to be bypassed.
The default printer is normally lp, though the
environment variable Refer to the 4.3 BSD Line Printer Spooler Manual for a complete discussion on how to setup the database for a given printer. CAPABILITIESRefer to termcap(5) for a description of the file layout.
Each two-letter capability has a human-readable alternate name.
If the local line printer driver supports indentation, the daemon must understand how to invoke it. FILTERSThe lpd(8) daemon creates a pipeline of filters to process files for various printer types. The filters selected depend on the flags passed to lpr(1). The pipeline set up is:p pr | if regular text + pr(1) none if regular text c cf cifplot d df DVI (tex) g gf plot(3) n nf ditroff f rf Fortran t tf troff v vf raster image The if filter is invoked with arguments: if
[-c ]
-w width
-l length
-i indent
-n login
-h host acct-fileThe If no All other filters are called as: filter
-x width
-y length
-n login
-h host acct-filewhere width and length
are represented in pixels, specified by the All filters take stdin as the file,
stdout as the printer, may log either to
stderr or using
syslog(3),
and must not ignore REMOTE PRINTINGWhen printing to a remote printer usingrm , it is
possible to use either if or
of . If both are specified, of
is ignored. Both filters behave the same except that they are passed different
arguments as above. Specifically, the output filter is terminated and
restarted for each file transmitted. This is necessary in order to pass the
resulting size to the remote
lpd(8).
If the There are some models of network printers which accept jobs from
lpd(8),
but they ignore the control file for a job and simply print each data file
as it arrives at the printer. One side-effect of this behavior is that the
printer will ignore any request for multiple copies as given with the
If TRANSFER STATISTICSWhen a print job is transferred to a remote machine (which might be another unix box, or may be a network printer), it may be useful to keep statistics on each transfer. Thesr and ss
options indicate filenames that lpd should use to store such statistics. A
statistics line is written for each datafile of a job as the file is
successfully transferred. The format of the line is the same for both the
sending and receiving side of a transfer.
Statistics on datafiles being received would be used on a print server, if you are interested in network performance between a variety of machines which are sending jobs to that print server. The print server could collect statistics on the speed of each print job as it arrived on the server. Statistics on datafiles being sent might be used as a minimal accounting record, when you want to know who sent which jobs to a remote printer, when they were sent, and how large (in bytes) the files were. This will not give include any idea of how many pages were printed, because there is no standard way to get that information back from a remote (network) printer in this case. LOGGINGError messages generated by the line printer programs themselves (that is, the lpd(8) and related programs) are logged by syslog(3) using theLPR facility. Messages printed on
stderr of one of the filters are sent to the corresponding
lf file. The filters may, of course, use
syslogd(8)
themselves.
Error messages sent to the console have a carriage return and a line feed appended to them, rather than just a line feed. SEE ALSOlpq(1), lpr(1), lprm(1), hosts.lpd(5), termcap(5), chkprintcap(8), lpc(8), lpd(8), pac(8)4.3 BSD Line Printer Spooler Manual. HISTORYTheprintcap file format appeared in
4.2BSD.
Visit the GSP FreeBSD Man Page Interface. |