<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Record Queue Name in Control File</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.7">
<link rel="HOME" title=" LPRng Reference Manual" href=
"index.htm">
<link rel="UP" title="lpr - Job Spooler Program" href=
"lpr.htm">
<link rel="PREVIOUS" title=
"The -Z Passthrough to Filter Options " href="append-z.htm">
<link rel="NEXT" title="Check For Nonprintable File " href=
"checkfornonprintable.htm">
</head>
<body class="SECT1" 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=
"append-z.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 6.
<b class="APPLICATION">lpr</b> - Job Spooler Program</td>
<td width="10%" align="right" valign="bottom"><a href=
"checkfornonprintable.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="LEFT" width="100%">
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="QQ">6.8. Record Queue Name in
Control File</a></h1>
<p>Options used:</p>
<ul>
<li>
<p><var class="LITERAL">qq</var> FLAG <span class=
"emphasis"><i class="EMPHASIS">Insert queue name into
control file</i></span></p>
</li>
<li>
<p><var class="LITERAL">force_queuename=</var><span
class="emphasis"><i class="EMPHASIS">Queuename to be
used</i></span></p>
</li>
</ul>
<br>
<br>
<p>The <var class="LITERAL">:qq</var> use queuename option
tells <b class="APPLICATION">LPRng</b> to record the queue
name that a job was originally queued to in the control file
as the <var class="LITERAL">Q</var> information. The <var
class="LITERAL">force_queuename=...</var> entry forces the
queue name to be the specified value. For example, the
following printcap entry and <b class="APPLICATION">lpr</b>
commands will result in a filter being passed the arguments
shown below.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN4458"></a>
<pre class="SCREEN">
#printcap
pr1_landscape|pr1_portrait|pr_raw
:filter=/.../filter
:lp=/dev/pr
:qq
lpr -Ppr1_landscape lpr -Ppr1_portrait
control file -
Qpr1_landscape Qpr1_portrait
filter command line:
... -Qpr1_landscape ... -Qpr1_portrait
</pre>
</div>
<br>
<br>
<p>The <var class="LITERAL">force_queuename</var> can be used
for force a specific value into the control file <var class=
"LITERAL">Q</var> information.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN4463"></a>
<pre class="SCREEN">
john|tom|frank
:filter=/.../filter
:lp=/dev/pr
:force_queuename=office
lpr -Pjohn
control file -
Qoffice
filter command line:
... -Qoffice
</pre>
</div>
<br>
<br>
</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=
"append-z.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=
"checkfornonprintable.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">The -Z
Passthrough to Filter Options</td>
<td width="34%" align="center" valign="top"><a href=
"lpr.htm" accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Check For
Nonprintable File</td>
</tr>
</table>
</div>
</body>
</html>
syntax highlighted by Code2HTML, v. 0.9.1