1 .\" Copyright (c) 1980, 1990, 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 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" From @(#)lpr.1 8.1 (Berkeley) 6/6/93
33 .\" $FreeBSD: src/usr.sbin/lpr/lpr/lpr.1,v 1.11.2.6 2002/06/21 16:40:52 charnier Exp $
34 .\" $DragonFly: src/usr.sbin/lpr/lpr/lpr.1,v 1.2 2003/06/17 04:29:56 dillon Exp $
44 .Op Fl P Ns Ar printer
51 .Op Fl Z Ar daemon-options
60 utility uses a spooling daemon to print the named files when facilities
61 become available. If no names appear, the standard input is assumed.
63 The following single letter options are used to notify the line printer
64 spooler that the files are not standard text files.
65 The spooling daemon will
66 use the appropriate filters to print the data accordingly.
67 Note that not all spoolers implement filters for all data types,
68 and some sites may use these types for other purposes than the ones
70 .Bl -tag -width indent
72 The files are assumed to contain data in
78 Use a filter which interprets the first character of each line as a
81 carriage control character.
83 Use a filter which allows control characters to be printed and suppresses
91 The following options are historical and not directly supported by any
94 .Bl -tag -width indent
96 The files are assumed to contain data produced by
99 The files are assumed to contain standard plot data as produced by the
104 The files are assumed to contain data from
106 (device independent troff).
108 The files are assumed to contain
110 phototypesetter commands from ancient versions of
114 The files are assumed to contain a raster image for devices like the
118 These options apply to the handling of
120 .Bl -tag -width indent
122 Force output to a specific printer. Normally,
123 the default printer is used (site dependent), or the value of the
128 Suppress the printing of the burst page.
130 Send mail upon completion.
132 Remove the file upon completion of spooling or upon completion of
137 Use symbolic links. Usually files are copied to the spool directory.
142 to link data files rather than trying to copy them so large files can be
143 printed. This means the files should
144 not be modified or removed until they have been printed.
147 The remaining options apply to copies, the page display, and headers:
148 .Bl -tag -width indent
152 is the number of copies desired of each file named. For example,
153 .Bd -literal -offset indent
154 lpr \-#3 foo.c bar.c more.c
156 would result in 3 copies of the file foo.c, followed by 3 copies
157 of the file bar.c, etc. On the other hand,
158 .Bd -literal -offset indent
159 cat foo.c bar.c more.c \&| lpr \-#3
162 will give three copies of the concatenation of the files.
164 a site will disable this feature to encourage use of a photocopier
172 to be mounted on font position
181 to use on the burst page. For example,
182 .Bd -literal -offset indent
186 causes the system name (the name returned by
188 to be replaced on the burst page by
190 and the file foo.c to be printed.
192 Job name to print on the burst page.
193 Normally, the first file's name is used.
197 specified as argument instead of one found in environment.
198 (Only effective when filtering through
200 is requested using the
206 instead of the file name.
208 User name to print on the burst page,
209 also for accounting purposes.
210 This option is only honored if the real user-id is daemon
211 (or that specified in the printcap file instead of daemon),
212 and is intended for those instances where print filters wish to requeue jobs.
213 .It Fl Z Ar daemon-options
214 Some spoolers, such as
216 accept additional per-job options using a
224 is not requested, the specified
226 will be passed to the remote
230 The output is indented by
235 as the page width for
239 If the following environment variable exists, it is used by
241 .Bl -tag -width PRINTER
243 Specifies an alternate default printer.
246 .Bl -tag -width /var/spool/output/*/tf* -compact
248 Personal identification.
250 Printer capabilities data base.
252 Line printer daemons.
253 .It Pa /var/spool/output/*
254 Directories used for spooling.
255 .It Pa /var/spool/output/*/cf*
256 Daemon control files.
257 .It Pa /var/spool/output/*/df*
258 Data files specified in "cf" files.
259 .It Pa /var/spool/output/*/tf*
260 Temporary copies of "cf" files.
276 If you try to spool too large a file, it will be truncated.
279 utility will object to printing binary files.
280 If a user other than root prints a file and spooling is disabled,
282 will print a message saying so and will not put jobs in the queue.
285 on the local machine cannot be made,
287 will say that the daemon cannot be started.
288 Diagnostics may be printed in the daemon's log file
289 regarding missing spool files by
296 reside on the host with the printer.
297 It is currently not possible to
298 use local font libraries.
302 control file line is used for two different purposes; for
306 it specifies a locale to be passed to
311 it specifies additional options to be interpreted by the spooler's
312 input and output filters.
313 When submitting jobs via
317 is used in the former context, and
318 .Fl Z Ar daemon-options
319 is used in the latter.