• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/LPRng/DOCS/LPRng-Reference-Multipart/
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>Using the Wildcard Printcap Entry</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="Printcap Database " href=
12    "printcapref.htm">
13    <link rel="PREVIOUS" title=
14    "Using :oh To Select Printcap Information" href="x5732.htm">
15    <link rel="NEXT" title="Enterprise Strength Printcap Example"
16    href="x5770.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          "x5732.htm" accesskey="P">Prev</a></td>
32
33          <td width="80%" align="center" valign="bottom">Chapter
34          12. Printcap Database</td>
35
36          <td width="10%" align="right" valign="bottom"><a href=
37          "x5770.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="AEN5758">12.5. Using the Wildcard
45      Printcap Entry</a></h1>
46
47      <p>The wildcard printcap name <var class="LITERAL">*</var> is
48      used to select a default or printcap entry when a match is
49      not found in the printcap database.</p>
50
51      <div class="INFORMALEXAMPLE">
52        <a name="AEN5762"></a>
53<pre class="SCREEN">
54    # %P and %Q set to printer name
55    *:lp=%P@server
56    
57    # %P set to 'printer', %Q set to printer name
58    printer|*:lp=%P@server
59</pre>
60      </div>
61      <br>
62      <br>
63
64      <p>When searching for printcap information, the <b class=
65      "APPLICATION">LPRng</b> software will first search for an
66      exact match for a printcap entry against the printcap names
67      and aliases. If non is found, it then searches for a wildcard
68      entry and uses the first one found with a wildcard name or
69      alias.</p>
70
71      <p>If the wildcard <var class="LITERAL">*</var> is the
72      printcap name, then the printer name (<var class=
73      "LITERAL">%P</var> value) and queue (<var class=
74      "LITERAL">%Q</var> value) are set to the name being searched
75      for. If the wildcard is an alias, then then printer name is
76      set to the printcap main entry name and the queue to the name
77      being searched for.</p>
78    </div>
79
80    <div class="NAVFOOTER">
81      <hr align="LEFT" width="100%">
82
83      <table summary="Footer navigation table" width="100%" border=
84      "0" cellpadding="0" cellspacing="0">
85        <tr>
86          <td width="33%" align="left" valign="top"><a href=
87          "x5732.htm" accesskey="P">Prev</a></td>
88
89          <td width="34%" align="center" valign="top"><a href=
90          "index.htm" accesskey="H">Home</a></td>
91
92          <td width="33%" align="right" valign="top"><a href=
93          "x5770.htm" accesskey="N">Next</a></td>
94        </tr>
95
96        <tr>
97          <td width="33%" align="left" valign="top">Using :oh To
98          Select Printcap Information</td>
99
100          <td width="34%" align="center" valign="top"><a href=
101          "printcapref.htm" accesskey="U">Up</a></td>
102
103          <td width="33%" align="right" valign="top">Enterprise
104          Strength Printcap Example</td>
105        </tr>
106      </table>
107    </div>
108  </body>
109</html>
110
111