2 .\" "$Id: lp.man 7889 2008-08-29 22:03:35Z mike $"
4 .\" lp man page for the Common UNIX Printing System (CUPS).
6 .\" Copyright 2007-2009 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 lp 1 "CUPS" "17 November 2008" "Apple Inc."
23 .I destination[/instance]
63 \fIlp\fR submits files for printing or alters a pending job. Use
64 a filename of "-" to force printing from the standard input.
65 .SH THE DEFAULT DESTINATION
66 CUPS provides many ways to set the default destination. The "LPDEST" and
67 "PRINTER" environment variables are consulted first. If neither are set,
68 the current default set using the \fIlpoptions(1)\fR command is used,
69 followed by the default set using the \fIlpadmin(8)\fR command.
71 The following options are recognized by \fIlp\fR:
75 Marks the end of options; use this to print a file whose name
76 begins with a dash (-).
80 Forces encryption when connecting to the server.
84 Specifies the username to use when connecting to the server.
88 This option is provided for backwards-compatibility only. On
89 systems that support it, this option forces the print file to be
90 copied to the spool directory before printing. In CUPS, print
91 files are always sent to the scheduler via IPP which has the
96 Prints files to the named printer.
100 Chooses an alternate server.
104 Specifies an existing job to modify.
108 Sends an email when the job is completed.
112 Sets the number of copies to print from 1 to 100.
114 -o "name=value [name=value ...]"
116 Sets one or more job options.
120 Sets the job priority from 1 (lowest) to 100 (highest). The
121 default priority is 50.
125 Do not report the resulting job IDs (silent mode.)
133 Submits jobs as \fIusername\fR.
145 Specifies when the job should be printed. A value of
146 \fIimmediate\fR will print the file immediately, a value of
147 \fIhold\fR will hold the job indefinitely, and a time value
148 (HH:MM) will hold the job until the specified time. Use a value
149 of \fIresume\fR with the \fI-i\fR option to resume a held job.
150 Use a value of \fIrestart\fR with the \fI-i\fR option to restart
155 Specifies which pages to print in the document. The list can
156 contain a list of numbers and ranges (#-#) separated by commas
157 (e.g. 1,3-5,16). The page numbers refer to the output pages and
158 not the document's original pages - options like "number-up" can
159 affect the numbering of the pages.
161 .SH COMMON JOB OPTIONS
162 Aside from the printer-specific options reported by the
163 \fIlpoptions(1)\fR command, the following generic options are
168 Sets the page size to \fIsize\fR. Most printers support at least
169 the size names "a4", "letter", and "legal".
173 -o orientation-requested=4
175 Prints the job in landscape (rotated 90 degrees).
179 -o sides=two-sided-long-edge
181 -o sides=two-sided-short-edge
183 Prints on one or two sides of the paper. The value
184 "two-sided-long-edge" is normally used when printing portrait
185 (unrotated) pages, while "two-sided-short-edge" is used for
190 Scales the print file to fit on the page.
202 Prints multiple document pages on each output page.
206 Scales image files to use up to \fInumber\fR percent of the page.
207 Values greater than 100 cause the image file to be printed across
212 Sets the number of characters per inch to use when printing a
213 text file. The default is 10.
217 Sets the number of lines per inch to use when printing a text
218 file. The default is 6.
228 Sets the page margins when printing text files. The values are in
229 points - there are 72 points to the inch.
231 Print a double-sided legal document to a printer called "foo":
233 lp -d foo -o media=legal -o sides=two-sided-long-edge filename
236 Print an image across 4 pages:
238 lp -d bar -o scaling=200 filename
241 Print a text file with 12 characters per inch, 8 lines per inch, and
242 a 1 inch left margin:
244 lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename
247 Unlike the System V printing system, CUPS allows printer names to
248 contain any printable character except SPACE, TAB, "/", or "#".
249 Also, printer and class names are \fInot\fR case-sensitive.
251 The "q" option accepts a different range of values than the
252 Solaris lp command, matching the IPP job priority values (1-100,
253 100 is highest priority) instead of the Solaris values (0-39, 0
254 is highest priority).
256 \fIcancel(1)\fR, \fIlpadmin(8)\fR, \fIlpmove(8)\fR, \fIlpoptions(1)\fR,
259 http://localhost:631/help
261 Copyright 2007-2009 by Apple Inc.
263 .\" End of "$Id: lp.man 7889 2008-08-29 22:03:35Z mike $".