/usr/share/doc/lprng-doc/LPRng-Reference-Multipart/lpr.htm is in lprng-doc 3.8.A~rc2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org">
<title>lpr - Job Spooler Program</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.79">
<link rel="HOME" title=" LPRng Reference Manual" href=
"index.htm">
<link rel="PREVIOUS" title="User Identification " href=
"allowusersetting.htm">
<link rel="NEXT" title=
"Job Pretty Printing, Banners, Priority, and Accounting" href=
"x4279.htm">
</head>
<body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link=
"#0000FF" vlink="#840084" alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center">LPRng Reference Manual: 24
Sep 2004 (For LPRng-3.8.28)</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"allowusersetting.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a href=
"x4279.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="left" width="100%">
</div>
<div class="CHAPTER">
<h1><a name="LPR" id="LPR"></a>Chapter 6. <b class=
"APPLICATION">lpr</b> - Job Spooler Program</h1>
<div class="TOC">
<dl>
<dt><b>Table of Contents</b></dt>
<dt>6.1. <a href="lpr.htm#DEFAULTFORMAT">Job Format
Options</a></dt>
<dt>6.2. <a href="x4279.htm">Job Pretty Printing, Banners,
Priority, and Accounting</a></dt>
<dt>6.3. <a href="classpriority.htm">Job Class and
Priority</a></dt>
<dt>6.4. <a href="jobcopies.htm">Job Copies and Job
Size</a></dt>
<dt>6.5. <a href="jobcompletion.htm">Job Completion
Notification Requested</a></dt>
<dt>6.6. <a href="x4385.htm">Remove Files After
Spooling</a></dt>
<dt>6.7. <a href="append-z.htm">The -Z Passthrough to
Filter Options</a></dt>
<dt>6.8. <a href="qq.htm">Record Queue Name in Control
File</a></dt>
<dt>6.9. <a href="checkfornonprintable.htm">Check For
Nonprintable File</a></dt>
<dt>6.10. <a href="lprbounce.htm">Job Filtering By
LPR</a></dt>
<dt>6.11. <a href="rg.htm">Restrict Queue Use to Group
Members</a></dt>
<dt>6.12. <a href="safechars.htm">Fixing Bad Control Files
and Metacharacters</a></dt>
<dt>6.13. <a href="minfree.htm">Minimum Spool Queue Free
Space</a></dt>
<dt>6.14. <a href="forcefqdnhostname.htm">FQDN Host
Information</a></dt>
</dl>
</div>
<p>The <b class="APPLICATION">lpr</b> client program is used to
submit a job to a print spooler. It does this by collecting
information about the job, putting it in a control file, and
then sending the control file and files to be printed to the
print server. The <b class="APPLICATION">lpr</b> command line
options are used to control or specify the values placed in the
control file and how the job is to be transferred to the remote
host. In addition, there are printcap or configuration level
options that provide a further degree of administrative control
over additional facilities. You can get the currently supported
command line options by using the following command:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN4238" id="AEN4238"></a>
<pre class="SCREEN">
<samp class="PROMPT">h4: {305} % </samp><kbd class=
"USERINPUT">lpr -=</kbd>
lpr: Illegal option '='
usage summary: lpr [-Pprinter[@host]] [-A] [-B] [-Cclass] [-Fformat]
[-Jinfo] [-(K|#)copies] [-Q] [-Raccountname] [-Ttitle]
[-Uuser[@host]] [-V] [-Zoptions] [-b] [-m mailaddr] [-h]
[-i indent] [-l] [-w num ] [-r] [-Ddebugopt ] [ filenames ... ]
-A - use authentication specified by AUTH environment variable
-B - filter job before sending
-C class - job class
-D debugopt - debugging flags
-F format - job format
-b,-l - binary or literal format
c,d,f,g,l,m,p,t,v are also format options
-J info - banner and job information
-K copies, -# copies - number of copies
-P printer[@host] - printer on host
-Q - put 'queuename' in control file
-Raccntname - accounting information
-T title - title for 'pr' (-p) formatting
-U username - override user name (restricted)
-V - Verbose information during spooling
-Z options - options to pass to filter
-h - no header or banner page
-i indent - indentation
-m mailaddr - mail final status to mailaddr
-r - remove files after spooling
-w width - width to use
PRINTER, NPRINTER environment variables set default printer.
</pre>
</div>
<p>If you are interested in the exact details of the job
transfer, control file, and data file formats, please see
<a href="rfc1179ref.htm">RFC 1179 - Line Printer Daemon
Protocol</a> for the exact details.</p>
<div class="SECT1">
<h1 class="SECT1"><a name="DEFAULTFORMAT" id=
"DEFAULTFORMAT">6.1. Job Format Options</a></h1>
<p>Options used:</p>
<ul>
<li>
<p><tt class="LITERAL">default_format=</tt><span class=
"emphasis"><i class="EMPHASIS">default print job format
(f)</i></span></p>
</li>
<li>
<p><tt class="LITERAL">fx=</tt><span class=
"emphasis"><i class="EMPHASIS">supported formats for
printing</i></span></p>
</li>
</ul>
<p>The legacy or vintage BSD print spooling system assigned
each job a format. This format was used by the <b class=
"APPLICATION">lpd</b> server to select an appropriate filter
program that would process the job and format it correctly
for the printer. By convention, lower case letters were used
to specify job formats.</p>
<p>The <b class="APPLICATION">LPRng</b> <b class=
"APPLICATION">lpr</b> client supports the legacy or vintage
BSD formats, and also provides the <tt class=
"LITERAL">-Fx</tt> literal to allow addition formats to be
specified. If a format is specified the <tt class=
"LITERAL">default_format</tt> value (usually <tt class=
"LITERAL">f</tt>) is used. The <tt class=
"LITERAL">fx=...</tt> option value is a list of the (lower
case) characters corresponding to the formats allowed for a
spool queue. For example, <tt class="LITERAL">fx=flv</tt>
would allow only jobs with format <tt class="LITERAL">f</tt>,
<tt class="LITERAL">l</tt>, or <tt class="LITERAL">v</tt> to
be spooled to a queue. By default, all job formats are
allowed.</p>
<p>A couple of job formats that require special treatment:
the <tt class="LITERAL">b</tt> (binary) and its alias the
<tt class="LITERAL">l</tt> (literal) format, and the
<tt class="LITERAL">p</tt> (pretty print) format. The
<tt class="LITERAL">-b</tt> or <tt class="LITERAL">-l</tt>
command line literal will select job format <tt class=
"LITERAL">l</tt> (literal) for the job. By default, jobs
marked with <tt class="LITERAL">l</tt> format are supposed to
have a minimum amount of handling and passed directly to a
printer. The <tt class="LITERAL">p</tt> (pretty print) format
is just the opposite - these jobs are supposed to be pretty
printed according to the various facilities available to the
<b class="APPLICATION">lpd</b> print spooler.</p>
</div>
</div>
<div class="NAVFOOTER">
<hr align="left" width="100%">
<table summary="Footer navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href=
"allowusersetting.htm" accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"index.htm" accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href=
"x4279.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">User
Identification</td>
<td width="34%" align="center" valign="top"> </td>
<td width="33%" align="right" valign="top">Job Pretty
Printing, Banners, Priority, and Accounting</td>
</tr>
</table>
</div>
<p align="center"></p>
</body>
</html>
|