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 .\" 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 .\" From @(#)lpr.1 8.1 (Berkeley) 6/6/93
39 .Op Fl P Ns Ar printer
46 .Op Fl Z Ar daemon-options
55 utility uses a spooling daemon to print the named files when facilities
57 If no names appear, the standard input is assumed.
59 The following single letter options are used to notify the line printer
60 spooler that the files are not standard text files.
61 The spooling daemon will
62 use the appropriate filters to print the data accordingly.
63 Note that not all spoolers implement filters for all data types,
64 and some sites may use these types for other purposes than the ones
66 .Bl -tag -width indent
68 The files are assumed to contain data in
74 Use a filter which interprets the first character of each line as a
77 carriage control character.
79 Use a filter which allows control characters to be printed and suppresses
87 The following options are historical and not directly supported by any
90 .Bl -tag -width indent
92 The files are assumed to contain data produced by
95 The files are assumed to contain standard plot data as produced by the
100 The files are assumed to contain data from
102 (device independent troff).
104 The files are assumed to contain
106 phototypesetter commands from ancient versions of
110 The files are assumed to contain a raster image for devices like the
114 These options apply to the handling of
116 .Bl -tag -width indent
118 Force output to a specific printer.
120 the default printer is used (site dependent), or the value of the
125 Suppress the printing of the burst page.
127 Send mail upon completion.
129 Remove the file upon completion of spooling or upon completion of
135 Usually files are copied to the spool directory.
140 to link data files rather than trying to copy them so large files can be
142 This means the files should
143 not be modified or removed until they have been printed.
146 The remaining options apply to copies, the page display, and headers:
147 .Bl -tag -width indent
151 is the number of copies desired of each file named.
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.
159 .Bd -literal -offset indent
160 cat foo.c bar.c more.c \&| lpr \-#3
163 will give three copies of the concatenation of the files.
165 a site will disable this feature to encourage use of a photocopier
173 to be mounted on font position
182 to use on the burst page.
184 .Bd -literal -offset indent
188 causes the system name (the name returned by
190 to be replaced on the burst page by
192 and the file foo.c to be printed.
194 Job name to print on the burst page.
195 Normally, the first file's name is used.
199 specified as argument instead of one found in environment.
200 (Only effective when filtering through
202 is requested using the
208 instead of the file name.
210 User name to print on the burst page,
211 also for accounting purposes.
212 This option is only honored if the real user-id is daemon
213 (or that specified in the printcap file instead of daemon),
214 and is intended for those instances where print filters wish to requeue jobs.
215 .It Fl Z Ar daemon-options
216 Some spoolers, such as
218 accept additional per-job options using a
226 is not requested, the specified
228 will be passed to the remote
232 The output is indented by
237 as the page width for
241 If the following environment variable exists, it is used by
243 .Bl -tag -width PRINTER
245 Specifies an alternate default printer.
248 .Bl -tag -width /var/spool/output/*/tf* -compact
250 Personal identification.
252 Printer capabilities data base.
254 Line printer daemons.
255 .It Pa /var/spool/output/*
256 Directories used for spooling.
257 .It Pa /var/spool/output/*/cf*
258 Daemon control files.
259 .It Pa /var/spool/output/*/df*
260 Data files specified in "cf" files.
261 .It Pa /var/spool/output/*/tf*
262 Temporary copies of "cf" files.
265 If you try to spool too large a file, it will be truncated.
268 utility will object to printing binary files.
269 If a user other than root prints a file and spooling is disabled,
271 will print a message saying so and will not put jobs in the queue.
274 on the local machine cannot be made,
276 will say that the daemon cannot be started.
277 Diagnostics may be printed in the daemon's log file
278 regarding missing spool files by
298 reside on the host with the printer.
299 It is currently not possible to
300 use local font libraries.
304 control file line is used for two different purposes; for
308 it specifies a locale to be passed to
313 it specifies additional options to be interpreted by the spooler's
314 input and output filters.
315 When submitting jobs via
319 is used in the former context, and
320 .Fl Z Ar daemon-options
321 is used in the latter.