]> git.ipfire.org Git - thirdparty/cups.git/blob - man/lpr.man
Changelog.
[thirdparty/cups.git] / man / lpr.man
1 .\"
2 .\" "$Id$"
3 .\"
4 .\" lpr man page for CUPS.
5 .\"
6 .\" Copyright 2007-2013 by Apple Inc.
7 .\" Copyright 1997-2006 by Easy Software Products.
8 .\"
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/".
14 .\"
15 .TH lpr 1 "CUPS" "29 August 2008" "Apple Inc."
16 .SH NAME
17 lpr \- print files
18 .SH SYNOPSIS
19 .B lpr
20 [ -E ] [ -H
21 .I server[:port]
22 ] [ -U
23 .I username
24 ] [ -P
25 .I destination[/instance]
26 ] [ -#
27 .I num-copies
28 [ -h ] [ -l ] [ -m ] [ -o
29 .I option[=value]
30 ] [ -p] [ -q ] [ -r ] [ -C/J/T
31 .I title
32 ] [
33 .I file(s)
34 ]
35 .SH DESCRIPTION
36 \fIlpr\fR submits files for printing. Files named on the command
37 line are sent to the named printer (or the default destination if no
38 destination is specified). If no files are listed on the command-line,
39 \fIlpr\fR reads the print file from the standard input.
40 .SH THE DEFAULT DESTINATION
41 CUPS provides many ways to set the default destination. The "LPDEST" and
42 "PRINTER" environment variables are consulted first. If neither are set,
43 the current default set using the \fIlpoptions(1)\fR command is used,
44 followed by the default set using the \fIlpadmin(8)\fR command.
45 .SH OPTIONS
46 The following options are recognized by \fIlpr\fR:
47 .TP 5
48 -E
49 .br
50 Forces encryption when connecting to the server.
51 .TP 5
52 -H server[:port]
53 .br
54 Specifies an alternate server.
55 .TP 5
56 -C "name"
57 .TP 5
58 -J "name"
59 .TP 5
60 -T "name"
61 .br
62 Sets the job name.
63 .TP 5
64 -P destination[/instance]
65 .br
66 Prints files to the named printer.
67 .TP 5
68 -U username
69 .br
70 Specifies an alternate username.
71 .TP 5
72 -# \fIcopies\fR
73 .br
74 Sets the number of copies to print from 1 to 100.
75 .TP 5
76 -h
77 .br
78 Disables banner printing. This option is equivalent to "-o
79 job-sheets=none".
80 .TP 5
81 -l
82 .br
83 Specifies that the print file is already formatted for the
84 destination and should be sent without filtering. This option is
85 equivalent to "-o raw".
86 .TP 5
87 -m
88 .br
89 Send an email on job completion.
90 .TP 5
91 -o option[=value]
92 .br
93 Sets a job option.
94 .TP 5
95 -p
96 .br
97 Specifies that the print file should be formatted with a shaded
98 header with the date, time, job name, and page number. This
99 option is equivalent to "-o prettyprint" and is only useful when
100 printing text files.
101 .TP 5
102 -q
103 .br
104 Hold job for printing.
105 .TP 5
106 -r
107 .br
108 Specifies that the named print files should be deleted after
109 printing them.
110 .SH COMPATIBILITY
111 The "c", "d", "f", "g", "i", "n", "t", "v", and "w" options
112 are not supported by CUPS and produce a warning message if used.
113 .SH SEE ALSO
114 \fIcancel(1)\fR, \fIlp(1)\fR, \fIlpadmin(8)\fR, \fIlpoptions(1)\fR,
115 \fIlpq(1)\fR, \fIlprm(1)\fR, \fIlpstat(1)\fR,
116 .br
117 http://localhost:631/help
118 .SH COPYRIGHT
119 Copyright 2007-2013 by Apple Inc.
120 .\"
121 .\" End of "$Id$".
122 .\"