.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)lpr.1 6.10 (Berkeley) 7/24/91
uses a spooling daemon to print the named files when facilities
become available. If no names appear, the standard input is assumed.
The following single letter options are used to notify the line printer
spooler that the files are not standard text files. The spooling daemon will
use the appropriate filters to print the data accordingly.
The files are assumed to contain data produced by
The files are assumed to contain data from
Use a filter which interprets the first character of each line as a
carriage control character.
The files are assumed to contain standard plot data as produced by the
for the filters used by the printer spooler).
Use a filter which allows control characters to be printed and suppresses
The files are assumed to contain data from
(device independent troff).
to format the files (equivalent to
The files are assumed to contain data from
(cat phototypesetter commands).
The files are assumed to contain a raster image for devices like the
These options apply to the handling of
Force output to a specific printer. Normally,
the default printer is used (site dependent), or the value of the
Suppress the printing of the burst page.
Send mail upon completion.
Remove the file upon completion of spooling or upon completion of
Use symbolic links. Usually files are copied to the spool directory.
to link data files rather than trying to copy them so large files can be
printed. This means the files should
not be modified or removed until they have been printed.
The remaining options apply to copies, the page display, and headers:
is the number of copies desired of each file named. For example,
.Bd -literal -offset indent
lpr \-#3 foo.c bar.c more.c
would result in 3 copies of the file foo.c, followed by 3 copies
of the file bar.c, etc. On the other hand,
.Bd -literal -offset indent
cat foo.c bar.c more.c \&| lpr \-#3
will give three copies of the concatenation of the files. Often
a site will disable this feature to encourage use of a photocopier
.Fl Ns Oo Cm 1234 Oc Ar font
to be mounted on font position
to use on the burst page. For example,
.Bd -literal -offset indent
causes the system name (the name returned by
to be replaced on the burst page by
and the file foo.c to be printed.
Job name to print on the burst page.
Normally, the first file's name is used.
instead of the file name.
User name to print on the burst page,
also for accounting purposes.
This option is only honored if the real user-id is daemon
(or that specified in the printcap file instead of daemon),
and is intended for those instances where print filters wish to requeue jobs.
The output is indented. If the next argument
it is used as the number of blanks to be printed before each
line; otherwise, 8 characters are printed.
If the following environment variable exists, it is used by
Specifies an alternate default printer.
.Bl -tag -width /var/spool/output/*/tf* -compact
Printer capabilities data base.
.It Pa /var/spool/output/*
Directories used for spooling.
.It Pa /var/spool/output/*/cf*
.It Pa /var/spool/output/*/df*
Data files specified in "cf" files.
.It Pa /var/spool/output/*/tf*
Temporary copies of "cf" files.
If you try to spool too large a file, it will be truncated.
will object to printing binary files.
If a user other than root prints a file and spooling is disabled,
will print a message saying so and will not put jobs in the queue.
on the local machine cannot be made,
will say that the daemon cannot be started.
Diagnostics may be printed in the daemon's log file
regarding missing spool files by
reside on the host with the printer. It is currently not possible to
use local font libraries.