<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>PRINTER, LPDEST, NPRINTER, and NGPRINTER Environment
    Variables</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=
    "LPRng Clients - lpr, lprm, lpq, lpc, lpstat " href=
    "lprngclients.htm">
    <link rel="PREVIOUS" title="Command Line -Pprinter" href=
    "x4133.htm">
    <link rel="NEXT" title="Wildcard Printcap Entry" href=
    "x4155.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=
          "x4133.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">Chapter 5.
          <b class="APPLICATION">LPRng</b> Clients - lpr, lprm,
          lpq, lpc, lpstat</td>

          <td width="10%" align="right" valign="bottom"><a href=
          "x4155.htm" accesskey="N">Next</a></td>
        </tr>
      </table>
      <hr align="LEFT" width="100%">
    </div>

    <div class="SECT1">
      <h1 class="SECT1"><a name="AEN4139">5.4. PRINTER, LPDEST,
      NPRINTER, and NGPRINTER Environment Variables</a></h1>

      <p>If no command line option is specified, the <b class=
      "APPLICATION">LPRng</b> clients will use the first defined
      <acronym class="ACRONYM">PRINTER</acronym>, <acronym class=
      "ACRONYM">LPDEST</acronym>, <acronym class=
      "ACRONYM">NPRINTER</acronym>, or <acronym class=
      "ACRONYM">NGPRINTER</acronym> environment variable value and
      will use the value as though specified as a <var class=
      "LITERAL">-P$PRINTER</var> command line literal. If the value
      has the form <var class="LITERAL">-Pprinter@host</var> the
      print queue will be <var class="LITERAL">printer</var> on
      server <var class="LITERAL">host</var> and not consult the
      printcap database. If the value has the form <var class=
      "LITERAL">printer</var> then the printcap will be searched
      for a <var class="LITERAL">printer</var> printcap entry. For
      example:</p>

      <div class="INFORMALEXAMPLE">
        <a name="AEN4153"></a>
<pre class="SCREEN">
    export PRINTER=laser@10.0.0.1; lpr
      equivalent to printcap entry:
        laser:lp=laser@10.0.0.1
    export PRINTER=pr; lpr
      look up printcap entry for 'lp'
</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=
          "x4133.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=
          "x4155.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Command Line
          -Pprinter</td>

          <td width="34%" align="center" valign="top"><a href=
          "lprngclients.htm" accesskey="U">Up</a></td>

          <td width="33%" align="right" valign="top">Wildcard
          Printcap Entry</td>
        </tr>
      </table>
    </div>
  </body>
</html>



syntax highlighted by Code2HTML, v. 0.9.1