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>LPRng Clients - lpr, lprm, lpq, lpc, lpstat</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="PREVIOUS" title="Debugging, Tracing, and Log Files" 12 href="x3917.htm"> 13 <link rel="NEXT" title="Command Line -Pprinter@host" href= 14 "x4113.htm"> 15 </head> 16 17 <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link= 18 "#0000FF" vlink="#840084" alink="#0000FF"> 19 <div class="NAVHEADER"> 20 <table summary="Header navigation table" width="100%" border= 21 "0" cellpadding="0" cellspacing="0"> 22 <tr> 23 <th colspan="3" align="center">LPRng Reference Manual: 5 24 Sep 2003 (For LPRng-3.8.22)</th> 25 </tr> 26 27 <tr> 28 <td width="10%" align="left" valign="bottom"><a href= 29 "x3917.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom"> 32 </td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "x4113.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="CHAPTER"> 42 <h1><a name="LPRNGCLIENTS"></a>Chapter 5. <b class= 43 "APPLICATION">LPRng</b> Clients - lpr, lprm, lpq, lpc, 44 lpstat</h1> 45 46 <div class="TOC"> 47 <dl> 48 <dt><b>Table of Contents</b></dt> 49 50 <dt>5.1. <a href="lprngclients.htm#PRINTERINFO">Printer 51 and Server Information</a></dt> 52 53 <dt>5.2. <a href="x4113.htm">Command Line 54 -Pprinter@host</a></dt> 55 56 <dt>5.3. <a href="x4119.htm">Command Line 57 -Pprinter</a></dt> 58 59 <dt>5.4. <a href="x4125.htm">PRINTER, LPDEST, NPRINTER, 60 and NGPRINTER Environment Variables</a></dt> 61 62 <dt>5.5. <a href="x4141.htm">Wildcard Printcap 63 Entry</a></dt> 64 65 <dt>5.6. <a href="x4148.htm">First Printcap 66 Entry</a></dt> 67 68 <dt>5.7. <a href="defaultrmrp.htm">Default Printer and 69 Server Host</a></dt> 70 71 <dt>5.8. <a href="forcelocalhost.htm">Force Connection to 72 Localhost</a></dt> 73 74 <dt>5.9. <a href="allowusersetting.htm">User 75 Identification</a></dt> 76 </dl> 77 </div> 78 79 <p>The <b class="APPLICATION">LPRng</b> software is a true 80 set of client/server applications. The <b class= 81 "APPLICATION">LPRng</b> clients, <b class= 82 "APPLICATION">lpr</b>, <b class="APPLICATION">lpq</b>, <b 83 class="APPLICATION">lprm</b>, and <b class= 84 "APPLICATION">lpc</b> connect to a <b class= 85 "APPLICATION">lpd</b> server using a TCP/IP connection. This 86 means that you must have TCP/IP networking enabled on your 87 workstation to use <b class="APPLICATION">LPRng</b>.</p> 88 89 <p>However, you do not need to have an external network 90 connection to the Internet. For most single system users, the 91 <b class="APPLICATION">lpd</b> server is running on the same 92 workstation as the client program, and the clients will 93 simply talk to the <var class="LITERAL">localhost</var>.</p> 94 95 <div class="SECT1"> 96 <h1 class="SECT1"><a name="PRINTERINFO">5.1. Printer and 97 Server Information</a></h1> 98 99 <p>Options used:</p> 100 101 <ul> 102 <li> 103 <p><var class="ENVAR">PRINTER</var>, <var class= 104 "ENVAR">LPDEST</var>, <var class="ENVAR">NPRINTER</var> 105 <var class="ENVAR">NGPRINTER</var> <span class= 106 "emphasis"><i class="EMPHASIS">Environment 107 variables</i></span></p> 108 </li> 109 110 <li> 111 <p><var class="LITERAL">force_localhost</var> FLAG 112 <span class="emphasis"><i class="EMPHASIS">force 113 clients to send requests to localhost</i></span></p> 114 </li> 115 116 <li> 117 <p><var class="LITERAL">require_explicit_q</var> FLAG 118 <span class="emphasis"><i class="EMPHASIS">require 119 queue to be specified</i></span></p> 120 </li> 121 </ul> 122 <br> 123 <br> 124 125 <p>When an <b class="APPLICATION">LPRng</b> client such as 126 <b class="APPLICATION">lpr</b>, <b class= 127 "APPLICATION">lpq</b>, <b class="APPLICATION">lprm</b>, or 128 <b class="APPLICATION">lpc</b> needs to communicate with a 129 print server, the only information they normally need 130 is:</p> 131 132 <ol type="1"> 133 <li> 134 <p>The remote printer (<var class="LITERAL">:rp</var>) 135 value to be used in requests to the <b class= 136 "APPLICATION">lpd</b> print server. This is sometimes 137 referred to as the <span class="emphasis"><i class= 138 "EMPHASIS">printer</i></span> or <span class= 139 "emphasis"><i class="EMPHASIS">print queue</i></span> 140 name.</p> 141 </li> 142 143 <li> 144 <p>The remote server (<var class="LITERAL">:rm</var>) 145 which is the The IP address or hostname of the <span 146 class="emphasis"><i class="EMPHASIS">print 147 server</i></span>.</p> 148 </li> 149 150 <li> 151 <p>The original queue name specified by the user which 152 may be used as part of the job information sent to the 153 print server.</p> 154 </li> 155 </ol> 156 <br> 157 <br> 158 159 <p><b class="APPLICATION">LPRng</b> has several ways to 160 specify the <span class="emphasis"><i class= 161 "EMPHASIS">printer queue</i></span> and <span class= 162 "emphasis"><i class="EMPHASIS">server</i></span> 163 information.</p> 164 </div> 165 </div> 166 167 <div class="NAVFOOTER"> 168 <hr align="LEFT" width="100%"> 169 170 <table summary="Footer navigation table" width="100%" border= 171 "0" cellpadding="0" cellspacing="0"> 172 <tr> 173 <td width="33%" align="left" valign="top"><a href= 174 "x3917.htm" accesskey="P">Prev</a></td> 175 176 <td width="34%" align="center" valign="top"><a href= 177 "index.htm" accesskey="H">Home</a></td> 178 179 <td width="33%" align="right" valign="top"><a href= 180 "x4113.htm" accesskey="N">Next</a></td> 181 </tr> 182 183 <tr> 184 <td width="33%" align="left" valign="top">Debugging, 185 Tracing, and Log Files</td> 186 187 <td width="34%" align="center" valign="top"> </td> 188 189 <td width="33%" align="right" valign="top">Command Line 190 -Pprinter@host</td> 191 </tr> 192 </table> 193 </div> 194 </body> 195</html> 196 197