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

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>LPRng Clients - lpr, lprm, lpq, lpc, lpstat</title>
    <meta name="GENERATOR" content=
    "Modular DocBook HTML Stylesheet Version 1.7">
    <link rel="HOME" title=" LPRng Reference Manual" href=
    "index.htm">
    <link rel="PREVIOUS" title="Debugging, Tracing, and Log Files"
    href="x3931.htm">
    <link rel="NEXT" title="Command Line -Pprinter@host" href=
    "x4127.htm">
  </head>

  <body class="CHAPTER" 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=
          "x3931.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">
          </td>

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

    <div class="CHAPTER">
      <h1><a name="LPRNGCLIENTS"></a>Chapter 5. <b class=
      "APPLICATION">LPRng</b> Clients - lpr, lprm, lpq, lpc,
      lpstat</h1>

      <div class="TOC">
        <dl>
          <dt><b>Table of Contents</b></dt>

          <dt>5.1. <a href="lprngclients.htm#PRINTERINFO">Printer
          and Server Information</a></dt>

          <dt>5.2. <a href="x4127.htm">Command Line
          -Pprinter@host</a></dt>

          <dt>5.3. <a href="x4133.htm">Command Line
          -Pprinter</a></dt>

          <dt>5.4. <a href="x4139.htm">PRINTER, LPDEST, NPRINTER,
          and NGPRINTER Environment Variables</a></dt>

          <dt>5.5. <a href="x4155.htm">Wildcard Printcap
          Entry</a></dt>

          <dt>5.6. <a href="x4162.htm">First Printcap
          Entry</a></dt>

          <dt>5.7. <a href="defaultrmrp.htm">Default Printer and
          Server Host</a></dt>

          <dt>5.8. <a href="forcelocalhost.htm">Force Connection to
          Localhost</a></dt>

          <dt>5.9. <a href="allowusersetting.htm">User
          Identification</a></dt>
        </dl>
      </div>

      <p>The <b class="APPLICATION">LPRng</b> software is a true
      set of client/server applications. The <b class=
      "APPLICATION">LPRng</b> clients, <b class=
      "APPLICATION">lpr</b>, <b class="APPLICATION">lpq</b>, <b
      class="APPLICATION">lprm</b>, and <b class=
      "APPLICATION">lpc</b> connect to a <b class=
      "APPLICATION">lpd</b> server using a TCP/IP connection. This
      means that you must have TCP/IP networking enabled on your
      workstation to use <b class="APPLICATION">LPRng</b>.</p>

      <p>However, you do not need to have an external network
      connection to the Internet. For most single system users, the
      <b class="APPLICATION">lpd</b> server is running on the same
      workstation as the client program, and the clients will
      simply talk to the <var class="LITERAL">localhost</var>.</p>

      <div class="SECT1">
        <h1 class="SECT1"><a name="PRINTERINFO">5.1. Printer and
        Server Information</a></h1>

        <p>Options used:</p>

        <ul>
          <li>
            <p><var class="ENVAR">PRINTER</var>, <var class=
            "ENVAR">LPDEST</var>, <var class="ENVAR">NPRINTER</var>
            <var class="ENVAR">NGPRINTER</var> <span class=
            "emphasis"><i class="EMPHASIS">Environment
            variables</i></span></p>
          </li>

          <li>
            <p><var class="LITERAL">force_localhost</var> FLAG
            <span class="emphasis"><i class="EMPHASIS">force
            clients to send requests to localhost</i></span></p>
          </li>

          <li>
            <p><var class="LITERAL">require_explicit_q</var> FLAG
            <span class="emphasis"><i class="EMPHASIS">require
            queue to be specified</i></span></p>
          </li>
        </ul>
        &#13;<br>
        <br>

        <p>When an <b class="APPLICATION">LPRng</b> client such as
        <b class="APPLICATION">lpr</b>, <b class=
        "APPLICATION">lpq</b>, <b class="APPLICATION">lprm</b>, or
        <b class="APPLICATION">lpc</b> needs to communicate with a
        print server, the only information they normally need
        is:</p>

        <ol type="1">
          <li>
            <p>The remote printer (<var class="LITERAL">:rp</var>)
            value to be used in requests to the <b class=
            "APPLICATION">lpd</b> print server. This is sometimes
            referred to as the <span class="emphasis"><i class=
            "EMPHASIS">printer</i></span> or <span class=
            "emphasis"><i class="EMPHASIS">print queue</i></span>
            name.</p>
          </li>

          <li>
            <p>The remote server (<var class="LITERAL">:rm</var>)
            which is the The IP address or hostname of the <span
            class="emphasis"><i class="EMPHASIS">print
            server</i></span>.</p>
          </li>

          <li>
            <p>The original queue name specified by the user which
            may be used as part of the job information sent to the
            print server.</p>
          </li>
        </ol>
        <br>
        <br>

        <p><b class="APPLICATION">LPRng</b> has several ways to
        specify the <span class="emphasis"><i class=
        "EMPHASIS">printer queue</i></span> and <span class=
        "emphasis"><i class="EMPHASIS">server</i></span>
        information.</p>
      </div>
    </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=
          "x3931.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=
          "x4127.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Debugging,
          Tracing, and Log Files</td>

          <td width="34%" align="center" valign="top">&nbsp;</td>

          <td width="33%" align="right" valign="top">Command Line
          -Pprinter@host</td>
        </tr>
      </table>
    </div>
  </body>
</html>



syntax highlighted by Code2HTML, v. 0.9.1