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 237 238 239 240
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Job Processing</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.71 ">
<link rel="HOME" title=" LPRng-HOWTO" href="index.htm">
<link rel="PREVIOUS" title="Legacy Compatibility" href=
"x6745.htm">
<link rel="NEXT" title="Submitting Jobs and Service Requests"
href="submitting.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-HOWTO: 1 Apr 2002
(For LPRng-3.8.10)</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"x6745.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">
</td>
<td width="10%" align="right" valign="bottom"><a href=
"submitting.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="LEFT" width="100%">
</div>
<div class="CHAPTER">
<h1><a name="JOBSTEPS">Chapter 15. Job Processing</a></h1>
<div class="TOC">
<dl>
<dt><b>Table of Contents</b></dt>
<dt>15.1. <a href=
"jobsteps.htm#CONFIGSETUP">Configuration and Setup
Options</a></dt>
<dt>15.2. <a href="submitting.htm">Submitting Jobs and
Service Requests</a></dt>
<dt>15.3. <a href="spoolq.htm">Spool Queue
Processing</a></dt>
<dt>15.4. <a href="opendevice.htm">Opening the Output
Device</a></dt>
<dt>15.5. <a href="bannerprinting.htm">Printing
Banners</a></dt>
<dt>15.6. <a href="printingjob.htm">Printing Job
Files</a></dt>
<dt>15.7. <a href="x7309.htm">Printing Banner At End of
Job</a></dt>
<dt>15.8. <a href="normalterm.htm">Normal
Termination</a></dt>
<dt>15.9. <a href="abnormalterm.htm">Abnormal
Termination</a></dt>
<dt>15.10. <a href="bk.htm">Forwarding Jobs</a></dt>
<dt>15.11. <a href="debugging.htm">Debugging</a></dt>
</dl>
</div>
<p>Much of the flexibility of the <b class=
"APPLICATION">LPRng</b> software is obtained from the ability
to control the details of each step of job processing. The
following section details each step in the processing of a
job, and explains the printcap options used to control each
operation.</p>
<p>Assume the <tt class="LITERAL">pr</tt> printcap entry has
the form:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6754"></a>
<pre class="SCREEN">
pr
:lp=/dev/lp OR :lp=rp@rm
:sd=/var/spool/lpd/pr
:lf=log
:filter=/usr/local/bin/lpf
</pre>
</div>
<br>
<br>
<p>Assume that we have used the following command to print a
set of files.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6757"></a>
<pre class="SCREEN">
lpr -Ppr file1 file2
</pre>
</div>
<br>
<br>
<p>This will create a control file in the <tt class=
"FILENAME">/var/spool/lpd/pr</tt> directory with the
following contents (this is an example - in practice there
may be minor differences between the example and an actual
control file):</p>
<div class="INFORMALEXAMPLE">
<a name="AEN6761"></a>
<pre class="SCREEN">
Hh4.private
J/tmp/file1 /tmp/file2
CA
Lpapowell
Ppapowell
fdfA002230h4.private
N/tmp/file1
UdfA002230h4.private
fdfB002230h4.private
N/tmp/file2
UdfB002230h4.private
</pre>
</div>
<br>
<br>
<p>We will refer to this example throughout the following
sections.</p>
<div class="SECT1">
<h1 class="SECT1"><a name="CONFIGSETUP">15.1. Configuration
and Setup Options</a></h1>
<p>Options used:</p>
<ul>
<li>
<p><tt class="LITERAL">ipv6</tt> FLAG <i class=
"EMPHASIS">use IPV6 Network facilities</i></p>
</li>
<li>
<p><tt class="LITERAL">default_tmp_dir=</tt><i class=
"EMPHASIS">temporary directory</i></p>
</li>
<li>
<p><tt class="LITERAL">lockfile=</tt><i class=
"EMPHASIS">lpd server lock file</i></p>
</li>
<li>
<p><tt class="LITERAL">report_server_as=</tt><i class=
"EMPHASIS">server name for status reports</i></p>
</li>
<li>
<p><tt class="LITERAL">spool_dir_perms=</tt><i class=
"EMPHASIS">spool directory permissions</i></p>
</li>
<li>
<p><tt class="LITERAL">spool_file_perms=</tt><i class=
"EMPHASIS">spool file permissions</i></p>
</li>
</ul>
<br>
<br>
<p>The <tt class="LITERAL">ipv6</tt> specifies that the
IPV6 protocol, rather than IPV4 will be used.</p>
<p>The <tt class="LITERAL">lockfile</tt> specifies the
location of the lock file used by the <b class=
"APPLICATION">lpd</b> server. This file has the port number
in the <tt class="LITERAL">lpd_port</tt> value appended to
form a unique lock file name.</p>
<p>The <tt class="LITERAL">spool_dir_perms</tt> and <tt
class="LITERAL">spool_file_perms</tt> (default 0700 and
0600 respectively) values are the (numeric) permissions for
the spool directory and spool files.</p>
<p>The <tt class="LITERAL">report_server_as</tt> option
allows an administrator to masquerade a server with another
name. This could be useful if various load sharing
activities are being carried out, or if there are problems
reconfiguring DNS to cause the correct server name to be
reported.</p>
<p>The <tt class="LITERAL">default_tmp_dir</tt> option
specifies a temporary directory to be used to hold files or
information temporarily if there is no spool directory
available.</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=
"x6745.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=
"submitting.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">Legacy
Compatibility</td>
<td width="34%" align="center" valign="top"> </td>
<td width="33%" align="right" valign="top">Submitting
Jobs and Service Requests</td>
</tr>
</table>
</div>
</body>
</html>
|