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>Record Queue Name in Control File</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="UP" title="lpr - Job Spooler Program" href= 12 "lpr.htm"> 13 <link rel="PREVIOUS" title= 14 "The -Z Passthrough to Filter Options " href="append-z.htm"> 15 <link rel="NEXT" title="Check For Nonprintable File " href= 16 "checkfornonprintable.htm"> 17 </head> 18 19 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 20 "#0000FF" vlink="#840084" alink="#0000FF"> 21 <div class="NAVHEADER"> 22 <table summary="Header navigation table" width="100%" border= 23 "0" cellpadding="0" cellspacing="0"> 24 <tr> 25 <th colspan="3" align="center">LPRng Reference Manual: 5 26 Sep 2003 (For LPRng-3.8.22)</th> 27 </tr> 28 29 <tr> 30 <td width="10%" align="left" valign="bottom"><a href= 31 "append-z.htm" accesskey="P">Prev</a></td> 32 33 <td width="80%" align="center" valign="bottom">Chapter 6. 34 <b class="APPLICATION">lpr</b> - Job Spooler Program</td> 35 36 <td width="10%" align="right" valign="bottom"><a href= 37 "checkfornonprintable.htm" accesskey="N">Next</a></td> 38 </tr> 39 </table> 40 <hr align="LEFT" width="100%"> 41 </div> 42 43 <div class="SECT1"> 44 <h1 class="SECT1"><a name="QQ">6.8. Record Queue Name in 45 Control File</a></h1> 46 47 <p>Options used:</p> 48 49 <ul> 50 <li> 51 <p><var class="LITERAL">qq</var> FLAG <span class= 52 "emphasis"><i class="EMPHASIS">Insert queue name into 53 control file</i></span></p> 54 </li> 55 56 <li> 57 <p><var class="LITERAL">force_queuename=</var><span 58 class="emphasis"><i class="EMPHASIS">Queuename to be 59 used</i></span></p> 60 </li> 61 </ul> 62 <br> 63 <br> 64 65 <p>The <var class="LITERAL">:qq</var> use queuename option 66 tells <b class="APPLICATION">LPRng</b> to record the queue 67 name that a job was originally queued to in the control file 68 as the <var class="LITERAL">Q</var> information. The <var 69 class="LITERAL">force_queuename=...</var> entry forces the 70 queue name to be the specified value. For example, the 71 following printcap entry and <b class="APPLICATION">lpr</b> 72 commands will result in a filter being passed the arguments 73 shown below.</p> 74 75 <div class="INFORMALEXAMPLE"> 76 <a name="AEN4444"></a> 77<pre class="SCREEN"> 78 #printcap 79 pr1_landscape|pr1_portrait|pr_raw 80 :filter=/.../filter 81 :lp=/dev/pr 82 :qq 83 84 lpr -Ppr1_landscape lpr -Ppr1_portrait 85 control file - 86 Qpr1_landscape Qpr1_portrait 87 88 filter command line: 89 ... -Qpr1_landscape ... -Qpr1_portrait 90</pre> 91 </div> 92 <br> 93 <br> 94 95 <p>The <var class="LITERAL">force_queuename</var> can be used 96 for force a specific value into the control file <var class= 97 "LITERAL">Q</var> information.</p> 98 99 <div class="INFORMALEXAMPLE"> 100 <a name="AEN4449"></a> 101<pre class="SCREEN"> 102 john|tom|frank 103 :filter=/.../filter 104 :lp=/dev/pr 105 :force_queuename=office 106 107 lpr -Pjohn 108 control file - 109 Qoffice 110 111 filter command line: 112 ... -Qoffice 113</pre> 114 </div> 115 <br> 116 <br> 117 </div> 118 119 <div class="NAVFOOTER"> 120 <hr align="LEFT" width="100%"> 121 122 <table summary="Footer navigation table" width="100%" border= 123 "0" cellpadding="0" cellspacing="0"> 124 <tr> 125 <td width="33%" align="left" valign="top"><a href= 126 "append-z.htm" accesskey="P">Prev</a></td> 127 128 <td width="34%" align="center" valign="top"><a href= 129 "index.htm" accesskey="H">Home</a></td> 130 131 <td width="33%" align="right" valign="top"><a href= 132 "checkfornonprintable.htm" accesskey="N">Next</a></td> 133 </tr> 134 135 <tr> 136 <td width="33%" align="left" valign="top">The -Z 137 Passthrough to Filter Options</td> 138 139 <td width="34%" align="center" valign="top"><a href= 140 "lpr.htm" accesskey="U">Up</a></td> 141 142 <td width="33%" align="right" valign="top">Check For 143 Nonprintable File</td> 144 </tr> 145 </table> 146 </div> 147 </body> 148</html> 149 150