<!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.71 "> <link rel="HOME" title=" LPRng-HOWTO" href="index.htm"> <link rel="PREVIOUS" title="Debugging, Tracing, and Log Files" href="x3862.htm"> <link rel="NEXT" title="Command Line -Pprinter@host" href= "x4058.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-HOWTO: 8 Feb 2002 (For LPRng-3.8.6)</th> </tr> <tr> <td width="10%" align="left" valign="bottom"><a href= "x3862.htm" accesskey="P">Prev</a></td> <td width="80%" align="center" valign="bottom"> </td> <td width="10%" align="right" valign="bottom"><a href= "x4058.htm" accesskey="N">Next</a></td> </tr> </table> <hr align="LEFT" width="100%"> </div> <div class="CHAPTER"> <h1><a name="LPRNGCLIENTS">Chapter 5. <b class= "APPLICATION">LPRng</b> Clients - lpr, lprm, lpq, lpc, lpstat</a></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="x4058.htm">Command Line -Pprinter@host</a></dt> <dt>5.3. <a href="x4064.htm">Command Line -Pprinter</a></dt> <dt>5.4. <a href="x4070.htm">PRINTER, LPDEST, NPRINTER, and NGPRINTER Environment Variables</a></dt> <dt>5.5. <a href="x4086.htm">Wildcard Printcap Entry</a></dt> <dt>5.6. <a href="x4093.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 <tt class="LITERAL">localhost</tt>.</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><tt class="ENVAR">PRINTER</tt>, <tt class= "ENVAR">LPDEST</tt>, <tt class="ENVAR">NPRINTER</tt> <tt class="ENVAR">NGPRINTER</tt> <i class= "EMPHASIS">Environment variables</i></p> </li> <li> <p><tt class="LITERAL">force_localhost</tt> FLAG <i class="EMPHASIS">force clients to send requests to localhost</i></p> </li> <li> <p><tt class="LITERAL">require_explicit_q</tt> FLAG <i class="EMPHASIS">require queue to be specified</i></p> </li> </ul> <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 (<tt class="LITERAL">:rp</tt>) value to be used in requests to the <b class= "APPLICATION">lpd</b> print server. This is sometimes referred to as the <i class="EMPHASIS">printer</i> or <i class="EMPHASIS">print queue</i> name.</p> </li> <li> <p>The remote server (<tt class="LITERAL">:rm</tt>) which is the The IP address or hostname of the <i class="EMPHASIS">print server</i>.</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 <i class="EMPHASIS">printer queue</i> and <i class="EMPHASIS">server</i> 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= "x3862.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= "x4058.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"> </td> <td width="33%" align="right" valign="top">Command Line -Pprinter@host</td> </tr> </table> </div> </body> </html>