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 $
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
60 become available. If no names appear, the standard input is assumed.
62 The following single letter options are used to notify the line printer
63 spooler that the files are not standard text files.
64 The spooling daemon will
65 use the appropriate filters to print the data accordingly.
66 Note that not all spoolers implement filters for all data types,
67 and some sites may use these types for other purposes than the ones
69 .Bl -tag -width indent
71 The files are assumed to contain data in
77 Use a filter which interprets the first character of each line as a
80 carriage control character.
82 Use a filter which allows control characters to be printed and suppresses
90 The following options are historical and not directly supported by any
93 .Bl -tag -width indent
95 The files are assumed to contain data produced by
98 The files are assumed to contain standard plot data as produced by the
103 The files are assumed to contain data from
105 (device independent troff).
107 The files are assumed to contain
109 phototypesetter commands from ancient versions of
113 The files are assumed to contain a raster image for devices like the
117 These options apply to the handling of
119 .Bl -tag -width indent
121 Force output to a specific printer. Normally,
122 the default printer is used (site dependent), or the value of the
127 Suppress the printing of the burst page.
129 Send mail upon completion.
131 Remove the file upon completion of spooling or upon completion of
136 Use symbolic links. Usually files are copied to the spool directory.
141 to link data files rather than trying to copy them so large files can be
142 printed. 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. For example,
152 .Bd -literal -offset indent
153 lpr \-#3 foo.c bar.c more.c
155 would result in 3 copies of the file foo.c, followed by 3 copies
156 of the file bar.c, etc. On the other hand,
157 .Bd -literal -offset indent
158 cat foo.c bar.c more.c \&| lpr \-#3
161 will give three copies of the concatenation of the files.
163 a site will disable this feature to encourage use of a photocopier
171 to be mounted on font position
180 to use on the burst page. For example,
181 .Bd -literal -offset indent
185 causes the system name (the name returned by
187 to be replaced on the burst page by
189 and the file foo.c to be printed.
191 Job name to print on the burst page.
192 Normally, the first file's name is used.
196 specified as argument instead of one found in environment.
197 (Only effective when filtering through
199 is requested using the
205 instead of the file name.
207 User name to print on the burst page,
208 also for accounting purposes.
209 This option is only honored if the real user-id is daemon
210 (or that specified in the printcap file instead of daemon),
211 and is intended for those instances where print filters wish to requeue jobs.
212 .It Fl Z Ar daemon-options
213 Some spoolers, such as
215 accept additional per-job options using a
223 is not requested, the specified
225 will be passed to the remote
229 The output is indented by
234 as the page width for
238 If the following environment variable exists, it is used by
240 .Bl -tag -width PRINTER
242 Specifies an alternate default printer.
245 .Bl -tag -width /var/spool/output/*/tf* -compact
247 Personal identification.
249 Printer capabilities data base.
251 Line printer daemons.
252 .It Pa /var/spool/output/*
253 Directories used for spooling.
254 .It Pa /var/spool/output/*/cf*
255 Daemon control files.
256 .It Pa /var/spool/output/*/df*
257 Data files specified in "cf" files.
258 .It Pa /var/spool/output/*/tf*
259 Temporary copies of "cf" files.
275 If you try to spool too large a file, it will be truncated.
278 utility will object to printing binary files.
279 If a user other than root prints a file and spooling is disabled,
281 will print a message saying so and will not put jobs in the queue.
284 on the local machine cannot be made,
286 will say that the daemon cannot be started.
287 Diagnostics may be printed in the daemon's log file
288 regarding missing spool files by
295 reside on the host with the printer.
296 It is currently not possible to
297 use local font libraries.
301 control file line is used for two different purposes; for
305 it specifies a locale to be passed to
310 it specifies additional options to be interpreted by the spooler's
311 input and output filters.
312 When submitting jobs via
316 is used in the former context, and
317 .Fl Z Ar daemon-options
318 is used in the latter.