1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>Job Processing</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="PREVIOUS" title="Legacy Compatibility" href= 12 "x6798.htm"> 13 <link rel="NEXT" title="Submitting Jobs and Service Requests" 14 href="submitting.htm"> 15 </head> 16 17 <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link= 18 "#0000FF" vlink="#840084" alink="#0000FF"> 19 <div class="NAVHEADER"> 20 <table summary="Header navigation table" width="100%" border= 21 "0" cellpadding="0" cellspacing="0"> 22 <tr> 23 <th colspan="3" align="center">LPRng Reference Manual: 5 24 Sep 2003 (For LPRng-3.8.22)</th> 25 </tr> 26 27 <tr> 28 <td width="10%" align="left" valign="bottom"><a href= 29 "x6798.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom"> 32 </td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "submitting.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="CHAPTER"> 42 <h1><a name="JOBSTEPS"></a>Chapter 15. Job Processing</h1> 43 44 <div class="TOC"> 45 <dl> 46 <dt><b>Table of Contents</b></dt> 47 48 <dt>15.1. <a href= 49 "jobsteps.htm#CONFIGSETUP">Configuration and Setup 50 Options</a></dt> 51 52 <dt>15.2. <a href="submitting.htm">Submitting Jobs and 53 Service Requests</a></dt> 54 55 <dt>15.3. <a href="reception.htm">Job Reception</a></dt> 56 57 <dt>15.4. <a href="spoolq.htm">Spool Queue 58 Processing</a></dt> 59 60 <dt>15.5. <a href="opendevice.htm">Opening the Output 61 Device</a></dt> 62 63 <dt>15.6. <a href="bannerprinting.htm">Printing 64 Banners</a></dt> 65 66 <dt>15.7. <a href="printingjob.htm">Printing Job 67 Files</a></dt> 68 69 <dt>15.8. <a href="x7427.htm">Printing Banner At End of 70 Job</a></dt> 71 72 <dt>15.9. <a href="normalterm.htm">Normal 73 Termination</a></dt> 74 75 <dt>15.10. <a href="abnormalterm.htm">Abnormal 76 Termination</a></dt> 77 78 <dt>15.11. <a href="bk.htm">Forwarding Jobs</a></dt> 79 80 <dt>15.12. <a href="debugging.htm">Debugging</a></dt> 81 </dl> 82 </div> 83 84 <p>Much of the flexibility of the <b class= 85 "APPLICATION">LPRng</b> software is obtained from the ability 86 to control the details of each step of job processing. The 87 following section details each step in the processing of a 88 job, and explains the printcap options used to control each 89 operation.</p> 90 91 <p>Assume the <var class="LITERAL">pr</var> printcap entry 92 has the form:</p> 93 94 <div class="INFORMALEXAMPLE"> 95 <a name="AEN6807"></a> 96<pre class="SCREEN"> 97 pr 98 :lp=/dev/lp OR :lp=rp@rm 99 :sd=/var/spool/lpd/pr 100 :lf=log 101 :filter=/usr/local/bin/lpf 102</pre> 103 </div> 104 <br> 105 <br> 106 107 <p>Assume that we have used the following command to print a 108 set of files.</p> 109 110 <div class="INFORMALEXAMPLE"> 111 <a name="AEN6810"></a> 112<pre class="SCREEN"> 113 lpr -Ppr file1 file2 114</pre> 115 </div> 116 <br> 117 <br> 118 119 <p>This will create a control file in the <tt class= 120 "FILENAME">/var/spool/lpd/pr</tt> directory with the 121 following contents (this is an example - in practice there 122 may be minor differences between the example and an actual 123 control file):</p> 124 125 <div class="INFORMALEXAMPLE"> 126 <a name="AEN6814"></a> 127<pre class="SCREEN"> 128 Hh4.private 129 J/tmp/file1 /tmp/file2 130 CA 131 Lpapowell 132 Ppapowell 133 fdfA002230h4.private 134 N/tmp/file1 135 UdfA002230h4.private 136 fdfB002230h4.private 137 N/tmp/file2 138 UdfB002230h4.private 139</pre> 140 </div> 141 <br> 142 <br> 143 144 <p>We will refer to this example throughout the following 145 sections.</p> 146 147 <div class="SECT1"> 148 <h1 class="SECT1"><a name="CONFIGSETUP">15.1. Configuration 149 and Setup Options</a></h1> 150 151 <p>Options used:</p> 152 153 <ul> 154 <li> 155 <p><var class="LITERAL">ipv6</var> FLAG <span class= 156 "emphasis"><i class="EMPHASIS">use IPV6 Network 157 facilities</i></span></p> 158 </li> 159 160 <li> 161 <p><var class="LITERAL">default_tmp_dir=</var><span 162 class="emphasis"><i class="EMPHASIS">temporary 163 directory</i></span></p> 164 </li> 165 166 <li> 167 <p><var class="LITERAL">lockfile=</var><span class= 168 "emphasis"><i class="EMPHASIS">lpd server lock 169 file</i></span></p> 170 </li> 171 172 <li> 173 <p><var class="LITERAL">report_server_as=</var><span 174 class="emphasis"><i class="EMPHASIS">server name for 175 status reports</i></span></p> 176 </li> 177 178 <li> 179 <p><var class="LITERAL">spool_dir_perms=</var><span 180 class="emphasis"><i class="EMPHASIS">spool directory 181 permissions</i></span></p> 182 </li> 183 184 <li> 185 <p><var class="LITERAL">spool_file_perms=</var><span 186 class="emphasis"><i class="EMPHASIS">spool file 187 permissions</i></span></p> 188 </li> 189 </ul> 190 <br> 191 <br> 192 193 <p>The <var class="LITERAL">ipv6</var> specifies that the 194 IPV6 protocol, rather than IPV4 will be used.</p> 195 196 <p>The <var class="LITERAL">lockfile</var> specifies the 197 location of the lock file used by the <b class= 198 "APPLICATION">lpd</b> server. This file has the port number 199 in the <var class="LITERAL">lpd_port</var> value appended 200 to form a unique lock file name.</p> 201 202 <p>The <var class="LITERAL">spool_dir_perms</var> and <var 203 class="LITERAL">spool_file_perms</var> (default 0700 and 204 0600 respectively) values are the (numeric) permissions for 205 the spool directory and spool files.</p> 206 207 <p>The <var class="LITERAL">report_server_as</var> option 208 allows an administrator to masquerade a server with another 209 name. This could be useful if various load sharing 210 activities are being carried out, or if there are problems 211 reconfiguring DNS to cause the correct server name to be 212 reported.</p> 213 214 <p>The <var class="LITERAL">default_tmp_dir</var> option 215 specifies a temporary directory to be used to hold files or 216 information temporarily if there is no spool directory 217 available.</p> 218 </div> 219 </div> 220 221 <div class="NAVFOOTER"> 222 <hr align="LEFT" width="100%"> 223 224 <table summary="Footer navigation table" width="100%" border= 225 "0" cellpadding="0" cellspacing="0"> 226 <tr> 227 <td width="33%" align="left" valign="top"><a href= 228 "x6798.htm" accesskey="P">Prev</a></td> 229 230 <td width="34%" align="center" valign="top"><a href= 231 "index.htm" accesskey="H">Home</a></td> 232 233 <td width="33%" align="right" valign="top"><a href= 234 "submitting.htm" accesskey="N">Next</a></td> 235 </tr> 236 237 <tr> 238 <td width="33%" align="left" valign="top">Legacy 239 Compatibility</td> 240 241 <td width="34%" align="center" valign="top"> </td> 242 243 <td width="33%" align="right" valign="top">Submitting 244 Jobs and Service Requests</td> 245 </tr> 246 </table> 247 </div> 248 </body> 249</html> 250 251