]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lp.man
Update cert code to not require a keychain. Default keychain works on all platforms...
[thirdparty/cups.git] / man / lp.man
CommitLineData
ef416fc2 1.\"
e4e5666b 2.\" "$Id$"
ef416fc2 3.\"
cfa19b58 4.\" lp man page for CUPS.
ef416fc2 5.\"
cfa19b58
MS
6.\" Copyright 2007-2014 by Apple Inc.
7.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 8.\"
cfa19b58
MS
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/".
ef416fc2 14.\"
cfa19b58 15.TH lp 1 "CUPS" "11 June 2014" "Apple Inc."
ef416fc2 16.SH NAME
cfa19b58 17lp \- print files
ef416fc2 18.SH SYNOPSIS
19.B lp
cfa19b58
MS
20[
21.B \-E
22] [
23.B \-U
fa73b229 24.I username
cfa19b58
MS
25] [
26.B \-c
27] [
28\fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
29] [
30\fB\-h \fIhostname\fR[\fB:\fIport\fR]
31] [
32.B \-m
33] [
34.B \-n
ef416fc2 35.I num-copies
cfa19b58
MS
36] [
37\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
38] [
39.B \-q
ef416fc2 40.I priority
cfa19b58
MS
41] [
42.B \-s
43] [
44.B \-t
ef416fc2 45.I title
cfa19b58
MS
46] [
47.B \-H
ef416fc2 48.I handling
cfa19b58
MS
49] [
50.B \-P
ef416fc2 51.I page-list
cfa19b58
MS
52] [
53.B \-\-
54] [
ef416fc2 55.I file(s)
56]
57.br
58.B lp
cfa19b58
MS
59[
60.B \-E
61] [
62.B \-U
fa73b229 63.I username
cfa19b58
MS
64] [
65.B \-c
66] [
67\fB\-h \fIhostname\fR[\fB:\fIport\fR]
68] [
69.B \-i
ef416fc2 70.I job-id
cfa19b58
MS
71] [
72.B \-n
ef416fc2 73.I num-copies
cfa19b58
MS
74] [
75\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
76] [
77.B \-q
ef416fc2 78.I priority
cfa19b58
MS
79] [
80.B \-t
ef416fc2 81.I title
cfa19b58
MS
82] [
83.B \-H
ef416fc2 84.I handling
cfa19b58
MS
85] [
86.B \-P
ef416fc2 87.I page-list
88]
ef416fc2 89.SH DESCRIPTION
cfa19b58
MS
90\fBlp\fR submits files for printing or alters a pending job.
91Use a filename of "-" to force printing from the standard input.
92.SS THE DEFAULT DESTINATION
93CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first.
94If neither are set, the current default set using the
95.BR lpoptions (1)
96command is used, followed by the default set using the
97.BR lpadmin (8)
98command.
ef416fc2 99.SH OPTIONS
bd7854cb 100The following options are recognized by \fIlp\fR:
ef416fc2 101.TP 5
cfa19b58
MS
102.B \-\-
103Marks the end of options; use this to print a file whose name begins with a dash (\-).
bd7854cb 104.TP 5
cfa19b58 105.B \-E
ef416fc2 106Forces encryption when connecting to the server.
107.TP 5
cfa19b58 108\fB\-U \fIusername\fR
09ec0018 109Specifies the username to use when connecting to the server.
110.TP 5
cfa19b58
MS
111.B \-c
112This option is provided for backwards-compatibility only. On systems that support it, this option forces the print file to be copied to the spool directory before printing.
113In CUPS, print files are always sent to the scheduler via IPP which has the same effect.
ef416fc2 114.TP 5
cfa19b58 115\fB\-d \fIdestination\fR
ef416fc2 116Prints files to the named printer.
117.TP 5
cfa19b58 118\fB\-h \fIhostname\fR[\fB:\fIport\fR]
bd7854cb 119Chooses an alternate server.
ef416fc2 120.TP 5
cfa19b58 121\fB\-i \fIjob-id\fR
ef416fc2 122Specifies an existing job to modify.
123.TP 5
cfa19b58 124.B \-m
bd7854cb 125Sends an email when the job is completed.
ef416fc2 126.TP 5
cfa19b58
MS
127\fB\-n \fIcopies\fR
128Sets the number of copies to print.
ef416fc2 129.TP 5
cfa19b58 130\fB\-o "\fIname\fB=\fIvalue \fR[ ... \fIname\fB=\fIvalue \fR]\fB"\fR
bd7854cb 131Sets one or more job options.
ef416fc2 132.TP 5
cfa19b58
MS
133\fB\-q \fIpriority\fR
134Sets the job priority from 1 (lowest) to 100 (highest).
135The default priority is 50.
ef416fc2 136.TP 5
cfa19b58 137.B \-s
ef416fc2 138Do not report the resulting job IDs (silent mode.)
139.TP 5
cfa19b58 140\fB\-t "\fIname\fB"\fR
ef416fc2 141Sets the job name.
142.TP 5
cfa19b58 143\fB\-H \fIhh:mm\fR
bd7854cb 144.TP 5
cfa19b58 145\fB\-H hold\fR
bd7854cb 146.TP 5
cfa19b58 147\fB-H immediate\fR
bd7854cb 148.TP 5
cfa19b58 149\fB-H restart\fR
ef416fc2 150.TP 5
cfa19b58
MS
151\fB-H resume\fR
152Specifies when the job should be printed.
153A value of \fIimmediate\fR will print the file immediately, a value of \fIhold\fR will hold the job indefinitely, and a UTC time value (HH:MM) will hold the job until the specified UTC (not local) time.
154Use a value of \fIresume\fR with the \fI-i\fR option to resume a held job.
155Use a value of \fIrestart\fR with the \fI-i\fR option to restart a completed job.
bd7854cb 156.TP 5
cfa19b58
MS
157\fB\-P \fIpage-list\fR
158Specifies which pages to print in the document.
159The list can contain a list of numbers and ranges (#-#) separated by commas, e.g., "1,3-5,16".
160The page numbers refer to the output pages and not the document's original pages - options like "number-up" can affect the numbering of the pages.
161.SS COMMON JOB OPTIONS
162Aside from the printer-specific options reported by the
163.BR lpoptions (1)
164command, the following generic options are available:
bd7854cb 165.TP 5
cfa19b58
MS
166\fB\-o media=\fIsize\fR
167Sets the page size to \fIsize\fR. Most printers support at least the size names "a4", "letter", and "legal".
bd7854cb 168.TP 5
cfa19b58 169\fB\-o orientation\-requested=4\fR
bd7854cb 170Prints the job in landscape (rotated 90 degrees).
171.TP 5
cfa19b58
MS
172\fB\-o sides=one\-sided\fR
173Prints on one side of the paper.
bd7854cb 174.TP 5
cfa19b58
MS
175\fB\-o sides=two\-sided\-long\-edge\fR
176Prints on both sides of the paper for portrait output.
bd7854cb 177.TP 5
cfa19b58
MS
178\fB\-o sides=two\-sided\-short\-edge\fR
179Prints on both sides of the paper for landscape output.
bd7854cb 180.TP 5
cfa19b58 181\fB\-o fit\-to\-page\fR
bd7854cb 182Scales the print file to fit on the page.
183.TP 5
cfa19b58
MS
184\fB\-o number\-up=\fR{\fI2|4|6|9|16\fR}
185Prints 2, 4, 6, 9, or 16 document (input) pages on each output page.
186.SH CONFORMING TO
187Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#".
188Also, printer and class names are \fInot\fR case-sensitive.
189.LP
190The \fI-q\fR option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority).
bd7854cb 191.SH EXAMPLES
cfa19b58 192Print two copies of a document to the default printer:
bd7854cb 193.nf
cfa19b58
MS
194
195 lp -n 2 filename
196
bd7854cb 197.fi
cfa19b58 198Print a double-sided legal document to a printer called "foo":
bd7854cb 199.nf
cfa19b58
MS
200
201 lp -d foo -o media=legal -o sides=two-sided-long-edge filename
202
bd7854cb 203.fi
cfa19b58 204Print a presentation document 2-up to a printer called "foo":
bd7854cb 205.nf
cfa19b58
MS
206
207 lp -d foo -o number-up=2 filename
bd7854cb 208.fi
ef416fc2 209.SH SEE ALSO
cfa19b58
MS
210.BR cancel (1),
211.BR lpadmin (8),
212.BR lpoptions (1),
213.BR lpq (1),
214.BR lpr (1),
215.BR lprm (1),
216.BR lpstat (1),
217CUPS Online Help (http://localhost:631/help)
ef416fc2 218.SH COPYRIGHT
fbfee7a8 219Copyright \[co] 2007-2015 by Apple Inc.
ef416fc2 220.\"
e4e5666b 221.\" End of "$Id$".
ef416fc2 222.\"