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
43 .Op Fl P Ns Ar printer
50 .Op Fl Z Ar daemon-options
59 utility uses a spooling daemon to print the named files when facilities
61 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.
124 the default printer is used (site dependent), or the value of the
129 Suppress the printing of the burst page.
131 Send mail upon completion.
133 Remove the file upon completion of spooling or upon completion of
139 Usually files are copied to the spool directory.
144 to link data files rather than trying to copy them so large files can be
146 This means the files should
147 not be modified or removed until they have been printed.
150 The remaining options apply to copies, the page display, and headers:
151 .Bl -tag -width indent
155 is the number of copies desired of each file named.
157 .Bd -literal -offset indent
158 lpr \-#3 foo.c bar.c more.c
160 would result in 3 copies of the file foo.c, followed by 3 copies
161 of the file bar.c, etc.
163 .Bd -literal -offset indent
164 cat foo.c bar.c more.c \&| lpr \-#3
167 will give three copies of the concatenation of the files.
169 a site will disable this feature to encourage use of a photocopier
177 to be mounted on font position
186 to use on the burst page.
188 .Bd -literal -offset indent
192 causes the system name (the name returned by
194 to be replaced on the burst page by
196 and the file foo.c to be printed.
198 Job name to print on the burst page.
199 Normally, the first file's name is used.
203 specified as argument instead of one found in environment.
204 (Only effective when filtering through
206 is requested using the
212 instead of the file name.
214 User name to print on the burst page,
215 also for accounting purposes.
216 This option is only honored if the real user-id is daemon
217 (or that specified in the printcap file instead of daemon),
218 and is intended for those instances where print filters wish to requeue jobs.
219 .It Fl Z Ar daemon-options
220 Some spoolers, such as
222 accept additional per-job options using a
230 is not requested, the specified
232 will be passed to the remote
236 The output is indented by
241 as the page width for
245 If the following environment variable exists, it is used by
247 .Bl -tag -width PRINTER
249 Specifies an alternate default printer.
252 .Bl -tag -width /var/spool/output/*/tf* -compact
254 Personal identification.
256 Printer capabilities data base.
258 Line printer daemons.
259 .It Pa /var/spool/output/*
260 Directories used for spooling.
261 .It Pa /var/spool/output/*/cf*
262 Daemon control files.
263 .It Pa /var/spool/output/*/df*
264 Data files specified in "cf" files.
265 .It Pa /var/spool/output/*/tf*
266 Temporary copies of "cf" files.
269 If you try to spool too large a file, it will be truncated.
272 utility will object to printing binary files.
273 If a user other than root prints a file and spooling is disabled,
275 will print a message saying so and will not put jobs in the queue.
278 on the local machine cannot be made,
280 will say that the daemon cannot be started.
281 Diagnostics may be printed in the daemon's log file
282 regarding missing spool files by
302 reside on the host with the printer.
303 It is currently not possible to
304 use local font libraries.
308 control file line is used for two different purposes; for
312 it specifies a locale to be passed to
317 it specifies additional options to be interpreted by the spooler's
318 input and output filters.
319 When submitting jobs via
323 is used in the former context, and
324 .Fl Z Ar daemon-options
325 is used in the latter.