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