Manual page for lpr(1B)
lpr - send a job to the printer
] ] [
filename ... ]
forwards printer jobs to a spooling area for subsequent printing as
facilities become available.
Each printer job consists of copies of,
complete pathnames of
The spool area is managed by the line printer spooler,
reads from the standard input if no files are specified.
- -P printer
Send output to the named
In the absence of the
option, the queue to the printer specified by the
variable in the environment is used.
variable is not set, and the
environment variable is not set,
the queue for the default printer is used.
- -# copies
Produce the number of
indicated for each named file.
lpr -#3 index.c lookup.c
produces three copies of
followed by three copies of
On the other hand,
cat index.c lookup.c | lpr -#3
generates three copies of the concatenation of the files.
- -C class
as the job classification on the
lpr -C Operations new.index.c
replaces the system name (the name returned by
with Operations on the burst page, and prints the file
- -J job
as the job name on the
uses the first file's name.
- -T title
instead of the file name for the title
characters is the default.
- -w cols
as the page width for
Send mail upon completion.
Suppress printing the burst page.
Use the full pathnames (not symbolic links) of the files to be printed
rather than trying to copy
This means the data files should
not be modified or removed until they
have been printed.
only prevents copies of local files from being made.
remote hosts are copied anyway.
only works with named data files; if the
command is at the end of a pipeline, the data is copied to the
The following single letter options 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.
to format the files
is very much like
pr | lpr).
Print control characters and suppress page breaks.
The files contain
(cat phototypesetter) binary data.
The files contain data from
(device independent troff).
The files contain data from
format from Stanford).
The files contain standard plot data as produced by the
The files contain a raster image.
The printer must support an appropriate imaging model such as
PostScript® in order to print the image.
The files contain data produced by
Interpret the first character of each line as a standard
carriage control character.
is given (and the printer can interpret PostScript), the string
as the first two characters of a file indicates that it
contains PostScript commands.
These filter options offer a standard user interface,
and all options may not be available for, nor applicable to,
System V line printer spooler
directories used for spooling
spooler control files
(N is an integer and > 0) data files specified in
- lpr: printer: unknown printer
was not found in the
Usually this is a typing mistake; however, it
may indicate that the printer does not exist on the system.
to discover the reason.
- lpr: error on opening queue to spooler
The connection to
on the local machine failed.
This usually means the printer server started at
boot time has died or is hung.
Check if the printer
- lpr: printer: printer queue is disabled
This means the queue was turned off with
/usr/etc/lpc disable printer
from putting files in the queue.
This is normally
done by the system manager when a printer is
going to be down for a long time.
printer can be turned back on by a super-user with
- lpr: Can't send message to the LP print service
- lpr: Can't receive message from the LP print service
These indicate that the
print service has been
Get help from the system administrator.
- lpr: Received unexpected message from LP print service
It is likely there is an error in this software.
Get help from system administrator.
- lpr: There is no filter to convert the file content
`lpstat -p -l'
command to find a printer that can handle
the file type directly, or consult with your system
- lpr: cannot access the file
Make sure file names are valid.
lp is the preferred interface.
Command-line options cannot be combined into a single argument
as with some other commands.
is not equivalent to
lpr -f -s
flag first, or writing each option as a separate argument, makes a link
is not precisely
pr | lpr.
puts the current date at the top of each page, rather
than the date last modified.
reside on the printer host.
It is currently not possible to use local font libraries.
objects to printing binary files.
option, intended to use symbolic links in SunOS, does not use
symbolic links in the compatibility package.
Instead, the complete path names are used.
Also, the copying is avoided only for print jobs that are
run from the printer host itself.
Jobs added to the queue from
a remote host are always copied into the spool area.
That is, if
the printer does not reside on the host that
is run from, the spooling system makes a copy the file to print,
and places it in the spool area of the printer host, regardless of
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97