]>
Commit | Line | Data |
---|---|---|
c277f98c | 1 | <!DOCTYPE HTML> |
94436c5a MS |
2 | <html> |
3 | <!-- SECTION: Man Pages --> | |
4 | <head> | |
5 | <link rel="stylesheet" type="text/css" href="../cups-printable.css"> | |
6 | <title>lpr(1)</title> | |
7 | </head> | |
8 | <body> | |
9 | <h1 class="title">lpr(1)</h1> | |
10 | <h2 class="title"><a name="NAME">Name</a></h2> | |
11 | lpr - print files | |
12 | <h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2> | |
c277f98c MS |
13 | <b>lpr</b> |
14 | [ -E ] [ -H | |
15 | <i>server[:port]</i> | |
16 | ] [ -U | |
17 | <i>username</i> | |
18 | ] [ -P | |
19 | <i>destination[/instance]</i> | |
20 | ] [ -# | |
21 | <i>num-copies</i> | |
22 | [ -h ] [ -l ] [ -m ] [ -o | |
23 | <i>option[=value]</i> | |
24 | ] [ -p] [ -q ] [ -r ] [ -C/J/T | |
25 | <i>title</i> | |
26 | ] [ | |
27 | <i>file(s)</i> | |
28 | ] | |
94436c5a MS |
29 | <h2 class="title"><a name="DESCRIPTION">Description</a></h2> |
30 | <i>lpr</i> submits files for printing. Files named on the command | |
31 | line are sent to the named printer (or the default destination if no | |
32 | destination is specified). If no files are listed on the command-line, | |
33 | <i>lpr</i> reads the print file from the standard input. | |
34 | <h2 class="title"><a name="THE_DEFAULT_DESTINATION">The Default Destination</a></h2> | |
35 | CUPS provides many ways to set the default destination. The "LPDEST" and | |
36 | "PRINTER" environment variables are consulted first. If neither are set, | |
c277f98c MS |
37 | the current default set using the <i>lpoptions(1)</i> command is used, |
38 | followed by the default set using the <i>lpadmin(8)</i> command. | |
94436c5a MS |
39 | <h2 class="title"><a name="OPTIONS">Options</a></h2> |
40 | The following options are recognized by <i>lpr</i>: | |
c277f98c MS |
41 | <p style="margin-left: 5.0em; text-indent: -5.0em">-E |
42 | <br> | |
43 | <br> | |
44 | Forces encryption when connecting to the server. | |
45 | <p style="margin-left: 5.0em; text-indent: -5.0em">-H server[:port] | |
46 | <br> | |
47 | <br> | |
48 | Specifies an alternate server. | |
49 | <p style="margin-left: 5.0em; text-indent: -5.0em">-C "name" | |
50 | <br> | |
51 | <p style="margin-left: 5.0em; text-indent: -5.0em">-J "name" | |
52 | <br> | |
53 | <p style="margin-left: 5.0em; text-indent: -5.0em">-T "name" | |
54 | <br> | |
55 | <br> | |
56 | Sets the job name. | |
57 | <p style="margin-left: 5.0em; text-indent: -5.0em">-P destination[/instance] | |
58 | <br> | |
59 | <br> | |
60 | Prints files to the named printer. | |
61 | <p style="margin-left: 5.0em; text-indent: -5.0em">-U username | |
62 | <br> | |
63 | <br> | |
64 | Specifies an alternate username. | |
65 | <p style="margin-left: 5.0em; text-indent: -5.0em">-# <i>copies</i> | |
66 | <br> | |
67 | <br> | |
68 | Sets the number of copies to print from 1 to 100. | |
69 | <p style="margin-left: 5.0em; text-indent: -5.0em">-h | |
70 | <br> | |
71 | <br> | |
72 | Disables banner printing. This option is equivalent to "-o | |
94436c5a | 73 | job-sheets=none". |
c277f98c MS |
74 | <p style="margin-left: 5.0em; text-indent: -5.0em">-l |
75 | <br> | |
76 | <br> | |
77 | Specifies that the print file is already formatted for the | |
94436c5a MS |
78 | destination and should be sent without filtering. This option is |
79 | equivalent to "-o raw". | |
c277f98c MS |
80 | <p style="margin-left: 5.0em; text-indent: -5.0em">-m |
81 | <br> | |
82 | <br> | |
83 | Send an email on job completion. | |
84 | <p style="margin-left: 5.0em; text-indent: -5.0em">-o option[=value] | |
85 | <br> | |
86 | <br> | |
87 | Sets a job option. | |
88 | <p style="margin-left: 5.0em; text-indent: -5.0em">-p | |
89 | <br> | |
90 | <br> | |
91 | Specifies that the print file should be formatted with a shaded | |
94436c5a MS |
92 | header with the date, time, job name, and page number. This |
93 | option is equivalent to "-o prettyprint" and is only useful when | |
94 | printing text files. | |
c277f98c MS |
95 | <p style="margin-left: 5.0em; text-indent: -5.0em">-q |
96 | <br> | |
97 | <br> | |
98 | Hold job for printing. | |
99 | <p style="margin-left: 5.0em; text-indent: -5.0em">-r | |
100 | <br> | |
101 | <br> | |
102 | Specifies that the named print files should be deleted after | |
94436c5a | 103 | printing them. |
94436c5a MS |
104 | <h2 class="title"><a name="COMPATIBILITY">Compatibility</a></h2> |
105 | The "c", "d", "f", "g", "i", "n", "t", "v", and "w" options | |
106 | are not supported by CUPS and produce a warning message if used. | |
107 | <h2 class="title"><a name="SEE_ALSO">See Also</a></h2> | |
c277f98c MS |
108 | <i>cancel(1)</i>, <i>lp(1)</i>, <i>lpadmin(8)</i>, <i>lpoptions(1)</i>, |
109 | <i>lpq(1)</i>, <i>lprm(1)</i>, <i>lpstat(1)</i>, | |
94436c5a | 110 | <br> |
c277f98c | 111 | <a href="http://localhost:631/help">http://localhost:631/help</a> |
94436c5a MS |
112 | <h2 class="title"><a name="COPYRIGHT">Copyright</a></h2> |
113 | Copyright 2007-2013 by Apple Inc. | |
114 | ||
115 | </body> | |
116 | </html> |