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>Emulation for UNIX SystemV lp and 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="UP" title="Installation" href="installation.htm"> 12 <link rel="PREVIOUS" title= 13 "Updating Print Spooler Software and Startup Scripts" href= 14 "update.htm"> 15 <link rel="NEXT" title="SAMBA and LPRng" href="smb.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 "update.htm" accesskey="P">Prev</a></td> 31 32 <td width="80%" align="center" valign="bottom">Chapter 2. 33 Installation</td> 34 35 <td width="10%" align="right" valign="bottom"><a href= 36 "smb.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="LPSIMULATION">2.11. Emulation for 44 UNIX SystemV <b class="APPLICATION">lp</b> and <b class= 45 "APPLICATION">lpstat</b></a></h1> 46 47 <p>Many utilities in the UNIX System V environment require 48 the <b class="APPLICATION">lp</b>, <b class= 49 "APPLICATION">lpstat</b>, and <b class= 50 "APPLICATION">cancel</b> programs. It is almost impossible to 51 modify these utilities, as many are <span class="emphasis"><i 52 class="EMPHASIS">vintage</i></span> software which is 53 unsupported or which would be too costly to update. In order 54 to support these applications <b class= 55 "APPLICATION">LPRng</b> emulates the <b class= 56 "APPLICATION">lp</b>, <b class="APPLICATION">lpstat</b>, and 57 <b class="APPLICATION">clean</b> programs. See the <b class= 58 "APPLICATION">LPRng</b> man pages for <b class= 59 "APPLICATION">lp</b>, <b class="APPLICATION">lpstat</b>, and 60 <b class="APPLICATION">cancel</b> in the <b class= 61 "APPLICATION">LPRng</b> distribution for details and 62 compatibility.</p> 63 64 <p>The <b class="APPLICATION">LPRng</b> <b class= 65 "APPLICATION">lpstat</b> emulator accepts the <b class= 66 "APPLICATION">lpstat</b> command line options returns status 67 in a format that is close to the one that common <b class= 68 "APPLICATION">lpstat</b> implementations return. 69 Unfortunately, due to the wide variety of different 70 modifications and vendor versions of <b class= 71 "APPLICATION">lpstat</b> there are slight differences between 72 the this status and the status returned by the original <b 73 class="APPLICATION">lpstat</b>. If this is the case, then 74 there is little to do but to modify the source code for <b 75 class="APPLICATION">lpstat</b> and compile a version that 76 implements the required format.</p> 77 78 <p>If the <b class="APPLICATION">lpr</b> program is invoked 79 with the name <b class="APPLICATION">lp</b>, it will simulate 80 the <b class="APPLICATION">lp</b> options. This can be done 81 by making a symbolic link to the <b class= 82 "APPLICATION">lpr</b> program or by making a copy of the <b 83 class="APPLICATION">lpr</b> program with the name <b class= 84 "APPLICATION">lp</b>.</p> 85 86 <div class="INFORMALEXAMPLE"> 87 <a name="AEN1338"></a> 88<pre class="SCREEN"> 89 <samp class="PROMPT">h4: {59} #</samp> <kbd class= 90"USERINPUT">cd /usr/bin</kbd> 91 <samp class="PROMPT">h4: {60} #</samp> <kbd class= 92"USERINPUT">ln -s lpr lp</kbd> 93 <samp class="PROMPT">h4: {61} #</samp> <kbd class= 94"USERINPUT">lp /tmp/hi</kbd> 95 request id is root@h4+489 96</pre> 97 </div> 98 <br> 99 <br> 100 101 <p>Finally, if the <b class="APPLICATION">lprm</b> program is 102 invoked with the name <b class="APPLICATION">cancel</b> it 103 will simulate the <b class="APPLICATION">cancel</b> command. 104 This can be done by making a symbolic link to the <b class= 105 "APPLICATION">lprm</b> program or by making a copy of the <b 106 class="APPLICATION">lprm</b> program with the name <b class= 107 "APPLICATION">cancel</b>.</p> 108 109 <div class="INFORMALEXAMPLE"> 110 <a name="AEN1353"></a> 111<pre class="SCREEN"> 112 <samp class="PROMPT">h4: {62} #</samp> <kbd class= 113"USERINPUT">cd /usr/bin</kbd> 114 <samp class="PROMPT">h4: {63} #</samp> <kbd class= 115"USERINPUT">ln -s lprm cancel</kbd> 116 <samp class="PROMPT">h4: {64} #</samp> <kbd class= 117"USERINPUT">cancel 489</kbd> 118 cancel 513 119 Printer lp@h9: 120 checking perms 'root@h9+513' 121 dequeued 'root@h9+513' 122</pre> 123 </div> 124 <br> 125 <br> 126 127 <p>Many <span class="emphasis"><i class= 128 "EMPHASIS">vintage</i></span> or <span class="emphasis"><i 129 class="EMPHASIS">legacy</i></span> applications have fully 130 qualified paths to the <b class="APPLICATION">lp</b> and <b 131 class="APPLICATION">lpstat</b> executables, and it may be 132 necessary to make additional symbolic links or copies of the 133 <b class="APPLICATION">LPRng</b> executables to satisfy their 134 pathname requirements.</p> 135 136 <div class="INFORMALEXAMPLE"> 137 <a name="AEN1367"></a> 138<pre class="SCREEN"> 139 <samp class="PROMPT">h4: {65} #</samp> <kbd class= 140"USERINPUT">ln -s /usr/bin/lpr /usr/ucb/lpr</kbd> 141</pre> 142 </div> 143 <br> 144 <br> 145 </div> 146 147 <div class="NAVFOOTER"> 148 <hr align="LEFT" width="100%"> 149 150 <table summary="Footer navigation table" width="100%" border= 151 "0" cellpadding="0" cellspacing="0"> 152 <tr> 153 <td width="33%" align="left" valign="top"><a href= 154 "update.htm" accesskey="P">Prev</a></td> 155 156 <td width="34%" align="center" valign="top"><a href= 157 "index.htm" accesskey="H">Home</a></td> 158 159 <td width="33%" align="right" valign="top"><a href= 160 "smb.htm" accesskey="N">Next</a></td> 161 </tr> 162 163 <tr> 164 <td width="33%" align="left" valign="top">Updating Print 165 Spooler Software and Startup Scripts</td> 166 167 <td width="34%" align="center" valign="top"><a href= 168 "installation.htm" accesskey="U">Up</a></td> 169 170 <td width="33%" align="right" valign="top">SAMBA and <b 171 class="APPLICATION">LPRng</b></td> 172 </tr> 173 </table> 174 </div> 175 </body> 176</html> 177 178