2 .\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
3 .\" Copyright (C) 2006, Sun Microsystems, Inc. All Rights Reserved
4 .TH LPR 1B "Feb 25, 2017"
6 lpr \- submit print requests
10 \fB/usr/ucb/lpr\fR [\fB-P\fR \fIdestination\fR] [\fB-#\fR \fInumber\fR] [\fB-C\fR \fIclass\fR]
11 [\fB-J\fR \fIjob\fR] [\fB-T\fR \fItitle\fR] [\fB-i\fR [\fIindent\fR]]
12 [\fB-1\fR | \fB-2\fR | \fB-3\fR | \fB-4\fR \fIfont\fR] [\fB-w\fR \fIcols\fR] [\fB-m\fR] [\fB-h\fR] [\fB-s\fR]
13 [\fB-filter_option\fR] [\fIfile\fR]...
18 The \fBlpr\fR utility submits print requests to a destination. \fBlpr\fR prints
19 files (\fIfile\fR) and associated information, collectively called a \fIprint
20 request\fR. If \fIfile\fR is not specified, \fBlpr\fR assumes the standard
24 The print client commands locate destination information using the "printers"
25 database in the name service switch. See \fBnsswitch.conf\fR(4),
26 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
29 Print requests with more than 52 \fIfile\fRs specified is truncated to 52 files
30 when the BSD print protocol is used for job submission.
33 The following options are supported:
37 \fB\fB-C\fR \fIclass\fR\fR
41 Prints \fIclass\fR as the job classification on the banner page of the output.
42 Enclose \fIclass\fR in double quotes if it contains blanks. If \fIclass\fR is
43 not specified, the name of the system (as returned by \fBhostname\fR) is
44 printed as the job classification. See \fBhostname\fR(1).
54 Suppresses printing of the banner page of the output.
60 \fB\fB-i\fR \fIindent\fR\fR
64 Indents the output a specific number of \fISPACE\fR characters. Use
65 \fIindent\fR to indicate the number of \fISPACE\fR characters to be indented.
66 Specify \fIindent\fR as a positive integer. If the optional argument to indent
67 is not specified, then eight \fISPACE\fR characters is the default. The
68 \fB-i\fR option is ignored unless it is specified with the \fB-p\fR filter
75 \fB\fB-J\fR \fIjob\fR\fR
79 Prints \fIjob\fR as the \fIjob name\fR on the banner page of the output.
80 Enclose \fIjob\fR in double quotes if it contains blanks. If \fIjob\fR is not
81 specified, \fIfile\fR (or in the case of multiple files, the first \fIfile\fR
82 specified on the command line) is printed as the job name on the banner page of
93 Sends mail after \fIfile\fR has printed. See \fBmail\fR(1). By default, no mail
94 is sent upon normal completion of a print request.
100 \fB\fB-P\fR \fIdestination\fR\fR
104 Prints \fIfile\fR on a specific printer or class of printers (see
105 \fBlpadmin\fR(1M)). Specify \fIdestination\fR using atomic, URI-style
106 (\fIscheme\fR\fB://\fR\fBendpoint\fR), or POSIX-style
107 (\fIserver\fR\fB:\fR\fIdestination\fR) names. See \fBprinters.conf\fR(4) for
108 information regarding destination names.
118 Prints files by reference rather than copying them. This means that files
119 should not be modified or removed until they have completed printing. This
120 option only prevents copying of files when the print queue is on the local
121 machine and the files are specified on the command line.
127 \fB\fB-T\fR \fItitle\fR\fR
131 Prints a title on the page header of the output. Enclose \fItitle\fR in double
132 quotes if it contains blanks. The \fB-T\fR option is ignored unless it is
133 specified with the \fB-p\fR filter option.
139 \fB\fB-w\fR \fIcols\fR\fR
143 Prints \fIfile\fR with pages of a specific width. \fIcols\fR indicates the
144 number of columns wide. The \fB-w\fR option is ignored unless it is specified
145 with the \fB-p\fR filter option.
151 \fB\(mi\fB1\fR|\(mi\fB2\fR|\(mi\fB3\fR|\(mi\fB4\fR \fIfont\fR\fR
155 Mounts the specified font in the font position \fB1\fR, \fB2\fR, \fB3\fR, or
156 \fB4\fR. Specify \fIfont\fR as a valid font name.
162 \fB\fB\(mi\fR \fIfilter_option\fR\fR
166 Notifies the print spooler that \fIfile\fR is not a standard text file. Enables
167 the spooling daemon to use the appropriate filters to print \fIfile\fR.
169 \fIfilter_option\fRs offer a standard user interface. All filter options might
170 not be available for, or applicable to, all printers.
172 Specify \fIfilter_option\fR as a single character.
174 If \fIfilter_option\fR is not specified and the printer can interpret
175 PostScript\(rg, inserting `\fB%!\fR' as the first two characters of \fIfile\fR
176 causes \fIfile\fR to be interpreted as PostScript.
178 The following filter options are supported:
185 \fIfile\fR contains data produced by \fIcifplot\fR.
194 \fIfile\fR contains \fBtex\fR data in \fBDVI\fR format from Stanford.
203 Interprets the first character of each line as a standard FORTRAN carriage
213 \fIfile\fR contains standard plot data produced by \fBplot\fR(1B) routines.
222 Print control characters and suppress page breaks.
231 \fIfile\fR contains \fBditroff\fR data from device independent troff.
240 Use \fBpr\fR to format the files. See \fBpr\fR(1).
249 \fIfile\fR contains \fBtroff\fR (cat phototypesetter) binary data.
258 \fIfile\fR contains a raster image. \fIprinter\fR must support an appropriate
259 imaging model such as PostScript in order to print the image.
267 \fB\fB-#\fR \fInumber\fR\fR
271 Prints a specific number of copies. Specify \fInumber\fR as a positive integer.
272 The default for \fInumber\fR is \fB1\fR.
277 The following operand is supported:
284 The name of the file to be printed. Specify \fIfile\fR as a pathname. If
285 \fIfile\fR is not specified, \fBlpr\fR uses the standard input.
290 See \fBlargefile\fR(5) for the description of the behavior of \fBlpr\fR when
291 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
294 The following exit values are returned:
301 Successful completion.
316 \fB\fB/etc/printers.conf\fR\fR
319 System printer configuration database
325 \fB\fB$HOME/.printers\fR\fR
328 User-configurable printer database
334 \fB\fBou=printers\fR\fR
337 LDAP version of \fB/etc/printers.conf\fR
343 \fB\fBprinters.conf.byname\fR\fR
346 NIS version of \fB/etc/printers.conf\fR
351 See \fBattributes\fR(5) for descriptions of the following attributes:
359 ATTRIBUTE TYPE ATTRIBUTE VALUE
361 Interface Stability Standard
363 CSI Enabled. See NOTES
368 \fBhostname\fR(1), \fBlp\fR(1), \fBlpc\fR(1B), \fBlpq\fR(1B), \fBlprm\fR(1B),
369 \fBlpstat\fR(1), \fBmail\fR(1), \fBplot\fR(1B), \fBpr\fR(1), \fBtroff\fR(1),
370 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
371 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBlargefile\fR(5),
376 \fB\fBlpr:\fR \fIdestination\fR \fB|: unknown destination\fR\fR
380 \fIdestination\fR was not found in the \fBLP\fR configuration database. Usually
381 this is a typing mistake; however, it can indicate that the \fIdestination\fR
382 does not exist on the system. Use \fBlpstat\fR \fB-p\fR to display information
383 about the status of the print service.
388 \fBlpr\fR is CSI-enabled except for the \fIprinter\fR name.
391 Print jobs are assumed to contain one type of data. That type of data is either
392 specified on the command line or autodetected (simple, PostScript) based on the
393 contents of the first file in the job.
396 When IPP is in use, the user is prompted for a passphrase if the remote print
397 service is configured to require authentication.