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>lpq Requests</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="UP" title="RFC 1179 - Line Printer Daemon Protocol " 12 href="rfc1179ref.htm"> 13 <link rel="PREVIOUS" title="Control File Contents" href= 14 "x10227.htm"> 15 <link rel="NEXT" title="lprm Requests" href="x10453.htm"> 16 </head> 17 18 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 19 "#0000FF" vlink="#840084" alink="#0000FF"> 20 <div class="NAVHEADER"> 21 <table summary="Header navigation table" width="100%" border= 22 "0" cellpadding="0" cellspacing="0"> 23 <tr> 24 <th colspan="3" align="center">LPRng Reference Manual: 5 25 Sep 2003 (For LPRng-3.8.22)</th> 26 </tr> 27 28 <tr> 29 <td width="10%" align="left" valign="bottom"><a href= 30 "x10227.htm" accesskey="P">Prev</a></td> 31 32 <td width="80%" align="center" valign="bottom">Chapter 33 19. RFC 1179 - Line Printer Daemon Protocol</td> 34 35 <td width="10%" align="right" valign="bottom"><a href= 36 "x10453.htm" accesskey="N">Next</a></td> 37 </tr> 38 </table> 39 <hr align="LEFT" width="100%"> 40 </div> 41 42 <div class="SECT1"> 43 <h1 class="SECT1"><a name="AEN10430">19.6. <b class= 44 "APPLICATION">lpq</b> Requests</a></h1> 45 46 <p>The RFC1179 protocol specifies that <b class= 47 "APPLICATION">lpq</b> print status requests can be sent to 48 the <b class="APPLICATION">lpd</b> server. The lpq requests 49 have the format:</p> 50 51 <div class="INFORMALEXAMPLE"> 52 <a name="AEN10436"></a> 53<pre class="SCREEN"> 54 \003printer [id]* \n short 55 \004printer [id]* \n long 56 \011printer [id]* \n <b class= 57"APPLICATION">LPRng</b> extension- verbose 58</pre> 59 </div> 60 <br> 61 <br> 62 63 <p>The <b class="APPLICATION">lpd</b> print server will then 64 return queue status and close the data connection.</p> 65 66 <p>RFC1179 does not state in any manner what the format of 67 the queue status should be. Thus, implementors have been free 68 to augment or change the status as they like. Even the BSD <b 69 class="APPLICATION">lpq</b> status format has been changed 70 from different versions.</p> 71 72 <p>See <a href="lpq.htm"><b class="APPLICATION">lpq</b> - 73 Status Monitoring Program</a> for information on the formats 74 returned.</p> 75 76 <p>The <var class="LITERAL">id</var> values are used to 77 select the jobs to be displayed. <b class= 78 "APPLICATION">LPRng</b> displays any job whose ID, hostname, 79 or user name information from the control file <var class= 80 "LITERAL">A</var>, <var class="LITERAL">H</var>, or <var 81 class="LITERAL">P</var> fields match any of the id 82 values.</p> 83 84 <p>Note that since there is no identification of the 85 information requestor, then restriction of information is 86 almost impossible.</p> 87 </div> 88 89 <div class="NAVFOOTER"> 90 <hr align="LEFT" width="100%"> 91 92 <table summary="Footer navigation table" width="100%" border= 93 "0" cellpadding="0" cellspacing="0"> 94 <tr> 95 <td width="33%" align="left" valign="top"><a href= 96 "x10227.htm" accesskey="P">Prev</a></td> 97 98 <td width="34%" align="center" valign="top"><a href= 99 "index.htm" accesskey="H">Home</a></td> 100 101 <td width="33%" align="right" valign="top"><a href= 102 "x10453.htm" accesskey="N">Next</a></td> 103 </tr> 104 105 <tr> 106 <td width="33%" align="left" valign="top">Control File 107 Contents</td> 108 109 <td width="34%" align="center" valign="top"><a href= 110 "rfc1179ref.htm" accesskey="U">Up</a></td> 111 112 <td width="33%" align="right" valign="top"><b class= 113 "APPLICATION">lprm</b> Requests</td> 114 </tr> 115 </table> 116 </div> 117 </body> 118</html> 119 120