4 .\" lpr man page for CUPS.
6 .\" Copyright 2007-2013 by Apple Inc.
7 .\" Copyright 1997-2006 by Easy Software Products.
9 .\" These coded instructions, statements, and computer programs are the
10 .\" property of Apple Inc. and are protected by Federal copyright
11 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 .\" which should have been included with this file. If this file is
13 .\" file is missing or damaged, see the license at "http://www.cups.org/".
15 .TH lpr 1 "CUPS" "11 June 2014" "Apple Inc."
23 \fB\-H \fIserver\fR[\fB:\fIport\fR]
28 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
39 \fB\-o \fIoption\fR[\fB=\fIvalue\fR]
59 \fBlpr\fR submits files for printing.
60 Files named on the command line are sent to the named printer or the default destination if no destination is specified.
61 If no files are listed on the command-line, \fBlpr\fR reads the print file from the standard input.
62 .SS THE DEFAULT DESTINATION
63 CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first.
64 If neither are set, the current default set using the
66 command is used, followed by the default set using the
70 The following options are recognized by \fIlpr\fR:
73 Forces encryption when connecting to the server.
75 \fB\-H \fIserver\fR[\fB:\fIport\fR]
76 Specifies an alternate server.
78 \fB\-C "\fIname\fB"\fR
80 \fB\-J "\fIname\fB"\fR
82 \fB\-T "\fIname\fB"\fR
83 Sets the job name/title.
85 \fB\-P \fIdestination\fR[\fB/\fIinstance\fR]
86 Prints files to the named printer.
89 Specifies an alternate username.
92 Sets the number of copies to print.
95 Disables banner printing. This option is equivalent to \fI-o job\-sheets=none\fR.
98 Specifies that the print file is already formatted for the destination and should be sent without filtering.
99 This option is equivalent to \fI-o raw\fR.
102 Send an email on job completion.
104 \fB\-o \fIoption\fR[\fB=\fIvalue\fR]
108 Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
109 This option is equivalent to \fI\-o prettyprint\fR and is only useful when printing text files.
112 Hold job for printing.
115 Specifies that the named print files should be deleted after submitting them.
117 The \fI\-c\fR, \fI\-d\fR, \fI\-f\fR, \fI\-g\fR, \fI\-i\fR, \fI\-n\fR, \fI\-t\fR, \fI\-v\fR, and \fI\-w\fR options are not supported by CUPS and produce a warning message if used.
119 Print two copies of a document to the default printer:
125 Print a double-sided legal document to a printer called "foo":
128 lpr -P foo -o media=legal -o sides=two-sided-long-edge filename
131 Print a presentation document 2-up to a printer called "foo":
134 lpr -P foo -o number-up=2 filename
144 CUPS Online Help (http://localhost:631/help)
146 Copyright \[co] 2007-2014 by Apple Inc.