• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/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>PRINTER, LPDEST, NPRINTER, and NGPRINTER Environment
7    Variables</title>
8    <meta name="GENERATOR" content=
9    "Modular DocBook HTML Stylesheet Version 1.7">
10    <link rel="HOME" title=" LPRng Reference Manual" href=
11    "index.htm">
12    <link rel="UP" title=
13    "LPRng Clients - lpr, lprm, lpq, lpc, lpstat " href=
14    "lprngclients.htm">
15    <link rel="PREVIOUS" title="Command Line -Pprinter" href=
16    "x4119.htm">
17    <link rel="NEXT" title="Wildcard Printcap Entry" href=
18    "x4141.htm">
19  </head>
20
21  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
22  "#0000FF" vlink="#840084" alink="#0000FF">
23    <div class="NAVHEADER">
24      <table summary="Header navigation table" width="100%" border=
25      "0" cellpadding="0" cellspacing="0">
26        <tr>
27          <th colspan="3" align="center">LPRng Reference Manual: 5
28          Sep 2003 (For LPRng-3.8.22)</th>
29        </tr>
30
31        <tr>
32          <td width="10%" align="left" valign="bottom"><a href=
33          "x4119.htm" accesskey="P">Prev</a></td>
34
35          <td width="80%" align="center" valign="bottom">Chapter 5.
36          <b class="APPLICATION">LPRng</b> Clients - lpr, lprm,
37          lpq, lpc, lpstat</td>
38
39          <td width="10%" align="right" valign="bottom"><a href=
40          "x4141.htm" accesskey="N">Next</a></td>
41        </tr>
42      </table>
43      <hr align="LEFT" width="100%">
44    </div>
45
46    <div class="SECT1">
47      <h1 class="SECT1"><a name="AEN4125">5.4. PRINTER, LPDEST,
48      NPRINTER, and NGPRINTER Environment Variables</a></h1>
49
50      <p>If no command line option is specified, the <b class=
51      "APPLICATION">LPRng</b> clients will use the first defined
52      <acronym class="ACRONYM">PRINTER</acronym>, <acronym class=
53      "ACRONYM">LPDEST</acronym>, <acronym class=
54      "ACRONYM">NPRINTER</acronym>, or <acronym class=
55      "ACRONYM">NGPRINTER</acronym> environment variable value and
56      will use the value as though specified as a <var class=
57      "LITERAL">-P$PRINTER</var> command line literal. If the value
58      has the form <var class="LITERAL">-Pprinter@host</var> the
59      print queue will be <var class="LITERAL">printer</var> on
60      server <var class="LITERAL">host</var> and not consult the
61      printcap database. If the value has the form <var class=
62      "LITERAL">printer</var> then the printcap will be searched
63      for a <var class="LITERAL">printer</var> printcap entry. For
64      example:</p>
65
66      <div class="INFORMALEXAMPLE">
67        <a name="AEN4139"></a>
68<pre class="SCREEN">
69    export PRINTER=laser@10.0.0.1; lpr
70      equivalent to printcap entry:
71        laser:lp=laser@10.0.0.1
72    export PRINTER=pr; lpr
73      look up printcap entry for 'lp'
74</pre>
75      </div>
76      <br>
77      <br>
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          "x4119.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          "x4141.htm" accesskey="N">Next</a></td>
94        </tr>
95
96        <tr>
97          <td width="33%" align="left" valign="top">Command Line
98          -Pprinter</td>
99
100          <td width="34%" align="center" valign="top"><a href=
101          "lprngclients.htm" accesskey="U">Up</a></td>
102
103          <td width="33%" align="right" valign="top">Wildcard
104          Printcap Entry</td>
105        </tr>
106      </table>
107    </div>
108  </body>
109</html>
110
111