]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | .\" |
f7faf1f5 | 2 | .\" "$Id: lp.man 5327 2006-03-23 19:53:24Z mike $" |
ef416fc2 | 3 | .\" |
bd7854cb | 4 | .\" lp man page for the Common UNIX Printing System (CUPS). |
ef416fc2 | 5 | .\" |
fa73b229 | 6 | .\" Copyright 1997-2006 by Easy Software Products. |
ef416fc2 | 7 | .\" |
8 | .\" These coded instructions, statements, and computer programs are the | |
9 | .\" property of Easy Software Products and are protected by Federal | |
10 | .\" copyright law. Distribution and use rights are outlined in the file | |
11 | .\" "LICENSE.txt" which should have been included with this file. If this | |
12 | .\" file is missing or damaged please contact Easy Software Products | |
13 | .\" at: | |
14 | .\" | |
15 | .\" Attn: CUPS Licensing Information | |
16 | .\" Easy Software Products | |
17 | .\" 44141 Airport View Drive, Suite 204 | |
18 | .\" Hollywood, Maryland 20636 USA | |
19 | .\" | |
20 | .\" Voice: (301) 373-9600 | |
21 | .\" EMail: cups-info@cups.org | |
22 | .\" WWW: http://www.cups.org | |
23 | .\" | |
80ca4592 | 24 | .TH lp 1 "Common UNIX Printing System" "23 March 2006" "Easy Software Products" |
ef416fc2 | 25 | .SH NAME |
bd7854cb | 26 | lp - print files |
ef416fc2 | 27 | .SH SYNOPSIS |
28 | .B lp | |
fa73b229 | 29 | [ -E ] [ -U |
30 | .I username | |
bd7854cb | 31 | ] [ -c ] [ -d |
32 | .I destination[/instance] | |
33 | ] [ -h | |
fa73b229 | 34 | .I hostname[:port] |
bd7854cb | 35 | ] [ -m ] [ -n |
ef416fc2 | 36 | .I num-copies |
80ca4592 | 37 | ] [ -o |
bd7854cb | 38 | .I option[=value] |
39 | ] [ -q | |
ef416fc2 | 40 | .I priority |
bd7854cb | 41 | ] [ -s ] [ -t |
ef416fc2 | 42 | .I title |
bd7854cb | 43 | ] [ -H |
ef416fc2 | 44 | .I handling |
bd7854cb | 45 | ] [ -P |
ef416fc2 | 46 | .I page-list |
bd7854cb | 47 | ] [ -- ] [ |
ef416fc2 | 48 | .I file(s) |
49 | ] | |
50 | .br | |
51 | .B lp | |
fa73b229 | 52 | [ -E ] [ -U |
53 | .I username | |
bd7854cb | 54 | ] [ -c ] [ -h |
fa73b229 | 55 | .I hostname[:port] |
bd7854cb | 56 | ] [ -i |
ef416fc2 | 57 | .I job-id |
bd7854cb | 58 | ] [ -n |
ef416fc2 | 59 | .I num-copies |
80ca4592 | 60 | ] [ -o |
bd7854cb | 61 | .I option[=value] |
62 | ] [ -q | |
ef416fc2 | 63 | .I priority |
bd7854cb | 64 | ] [ -t |
ef416fc2 | 65 | .I title |
bd7854cb | 66 | ] [ -H |
ef416fc2 | 67 | .I handling |
bd7854cb | 68 | ] [ -P |
ef416fc2 | 69 | .I page-list |
70 | ] | |
ef416fc2 | 71 | .SH DESCRIPTION |
bd7854cb | 72 | \fIlp\fR submits files for printing or alters a pending job. Use |
ef416fc2 | 73 | a filename of "-" to force printing from the standard input. |
ef416fc2 | 74 | .SH OPTIONS |
bd7854cb | 75 | The following options are recognized by \fIlp\fR: |
ef416fc2 | 76 | .TP 5 |
bd7854cb | 77 | -- |
78 | .br | |
79 | Marks the end of options; use this to print a file whose name | |
80 | begins with a dash (-). | |
81 | .TP 5 | |
82 | -E | |
ef416fc2 | 83 | .br |
84 | Forces encryption when connecting to the server. | |
85 | .TP 5 | |
bd7854cb | 86 | -U username |
09ec0018 | 87 | .br |
88 | Specifies the username to use when connecting to the server. | |
89 | .TP 5 | |
bd7854cb | 90 | -c |
ef416fc2 | 91 | .br |
92 | This option is provided for backwards-compatibility only. On | |
93 | systems that support it, this option forces the print file to be | |
94 | copied to the spool directory before printing. In CUPS, print | |
95 | files are always sent to the scheduler via IPP which has the | |
96 | same effect. | |
97 | .TP 5 | |
bd7854cb | 98 | -d destination |
ef416fc2 | 99 | .br |
100 | Prints files to the named printer. | |
101 | .TP 5 | |
bd7854cb | 102 | -h hostname[:port] |
ef416fc2 | 103 | .br |
bd7854cb | 104 | Chooses an alternate server. |
ef416fc2 | 105 | .TP 5 |
bd7854cb | 106 | -i job-id |
ef416fc2 | 107 | .br |
108 | Specifies an existing job to modify. | |
109 | .TP 5 | |
bd7854cb | 110 | -m |
ef416fc2 | 111 | .br |
bd7854cb | 112 | Sends an email when the job is completed. |
ef416fc2 | 113 | .TP 5 |
bd7854cb | 114 | -n copies |
ef416fc2 | 115 | .br |
116 | Sets the number of copies to print from 1 to 100. | |
117 | .TP 5 | |
bd7854cb | 118 | -o "name=value [name=value ...]" |
ef416fc2 | 119 | .br |
bd7854cb | 120 | Sets one or more job options. |
ef416fc2 | 121 | .TP 5 |
bd7854cb | 122 | -q priority |
ef416fc2 | 123 | .br |
124 | Sets the job priority from 1 (lowest) to 100 (highest). The | |
125 | default priority is 50. | |
126 | .TP 5 | |
bd7854cb | 127 | -s |
ef416fc2 | 128 | .br |
129 | Do not report the resulting job IDs (silent mode.) | |
130 | .TP 5 | |
bd7854cb | 131 | -t "name" |
ef416fc2 | 132 | .br |
133 | Sets the job name. | |
134 | .TP 5 | |
bd7854cb | 135 | -u username |
ef416fc2 | 136 | .br |
bd7854cb | 137 | Submits jobs as \fIusername\fR. |
138 | .TP 5 | |
139 | -H hh:mm | |
140 | .TP 5 | |
141 | -H hold | |
142 | .TP 5 | |
143 | -H immediate | |
144 | .TP 5 | |
145 | -H restart | |
ef416fc2 | 146 | .TP 5 |
bd7854cb | 147 | -H resume |
ef416fc2 | 148 | .br |
149 | Specifies when the job should be printed. A value of | |
150 | \fIimmediate\fR will print the file immediately, a value of | |
151 | \fIhold\fR will hold the job indefinitely, and a time value | |
152 | (HH:MM) will hold the job until the specified time. Use a value | |
153 | of \fIresume\fR with the \fI-i\fR option to resume a held job. | |
154 | Use a value of \fIrestart\fR with the \fI-i\fR option to restart | |
155 | a completed job. | |
156 | .TP 5 | |
bd7854cb | 157 | -P page-list |
158 | .br | |
159 | Specifies which pages to print in the document. The list can | |
160 | contain a list of numbers and ranges (#-#) separated by commas | |
161 | (e.g. 1,3-5,16). | |
162 | .SH COMMON JOB OPTIONS | |
163 | Aside from the printer-specific options reported by the | |
164 | \fIlpoptions(1)\fR command, the following generic options are | |
165 | available: | |
166 | .TP 5 | |
167 | -o media=size | |
168 | .br | |
169 | Sets the page size to \fIsize\fR. Most printers support at least | |
170 | the size names "a4", "letter", and "legal". | |
171 | .TP 5 | |
172 | -o landscape | |
173 | .TP 5 | |
174 | -o orientation-requested=4 | |
ef416fc2 | 175 | .br |
bd7854cb | 176 | Prints the job in landscape (rotated 90 degrees). |
177 | .TP 5 | |
178 | -o sides=one-sided | |
179 | .TP 5 | |
180 | -o sides=two-sided-long-edge | |
181 | .TP 5 | |
182 | -o sides=two-sided-short-edge | |
183 | .br | |
184 | Prints on one or two sides of the paper. The value | |
185 | "two-sided-long-edge" is normally used when printing portrait | |
186 | (unrotated) pages, while "two-sided-short-edge" is used for | |
187 | landscape pages. | |
188 | .TP 5 | |
189 | -o fitplot | |
190 | .br | |
191 | Scales the print file to fit on the page. | |
192 | .TP 5 | |
193 | -o scaling=number | |
194 | .br | |
195 | Scales image files to use up to \fInumber\fR percent of the page. | |
196 | Values greater than 100 cause the image file to be printed across | |
197 | multiple pages. | |
198 | .TP 5 | |
199 | -o cpi=N | |
200 | .br | |
201 | Sets the number of characters per inch to use when printing a | |
202 | text file. The default is 10. | |
203 | .TP 5 | |
204 | -o lpi=N | |
205 | .br | |
206 | Sets the number of lines per inch to use when printing a text | |
207 | file. The default is 6. | |
208 | .TP 5 | |
209 | -o page-bottom=N | |
210 | .TP 5 | |
211 | -o page-left=N | |
212 | .TP 5 | |
213 | -o page-right=N | |
214 | .TP 5 | |
215 | -o page-top=N | |
216 | .br | |
217 | Sets the page margins when printing text files. The values are in | |
218 | points - there are 72 points to the inch. | |
219 | .SH EXAMPLES | |
220 | Print a double-sided legal document to a printer called "foo": | |
221 | .nf | |
222 | lp -d foo -o media=legal -o sides=two-sided-long-edge filename | |
223 | .fi | |
224 | .LP | |
225 | Print an image across 4 pages: | |
226 | .nf | |
227 | lp -d bar -o scaling=200 filename | |
228 | .fi | |
229 | .LP | |
230 | Print a text file with 12 characters per inch, 8 lines per inch, and | |
231 | a 1 inch left margin: | |
232 | .nf | |
233 | lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename | |
234 | .fi | |
ef416fc2 | 235 | .SH COMPATIBILITY |
bd7854cb | 236 | Unlike the System V printing system, CUPS allows printer names to |
237 | contain any printable character except SPACE, TAB, "/", or "#". | |
238 | Also, printer and class names are \fInot\fR case-sensitive. | |
ef416fc2 | 239 | .LP |
ef416fc2 | 240 | The "q" option accepts a different range of values than the |
bd7854cb | 241 | Solaris lp command, matching the IPP job priority values (1-100, |
242 | 100 is highest priority) instead of the Solaris values (0-39, 0 | |
243 | is highest priority). | |
ef416fc2 | 244 | .SH SEE ALSO |
bd7854cb | 245 | \fIcancel(1)\fR, \fIlpmove(8)\fR, \fIlpoptions(1)\fR, \fIlpstat(1)\fR, |
fa73b229 | 246 | .br |
247 | http://localhost:631/help | |
ef416fc2 | 248 | .SH COPYRIGHT |
bd7854cb | 249 | Copyright 1997-2006 by Easy Software Products, All Rights Reserved. |
ef416fc2 | 250 | .\" |
f7faf1f5 | 251 | .\" End of "$Id: lp.man 5327 2006-03-23 19:53:24Z mike $". |
ef416fc2 | 252 | .\" |