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