• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/LPRng/DOCS/LPRng-Reference-Multipart/
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>I want to replace lp, lpstat, etc, but my programs need
7    them</title>
8    <meta name="GENERATOR" content=
9    "Modular DocBook HTML Stylesheet Version 1.7">
10    <link rel="HOME" title=" LPRng Reference Manual" href=
11    "index.htm">
12    <link rel="UP" title="The Most Frequently Asked Questions "
13    href="faq.htm">
14    <link rel="PREVIOUS" title=
15    "What is RFC 1179, the Line Printer Daemon Protocol? " href=
16    "rfc1179.htm">
17    <link rel="NEXT" title="Remote Logger Operation" href=
18    "remotelogger.htm">
19  </head>
20
21  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
22  "#0000FF" vlink="#840084" alink="#0000FF">
23    <div class="NAVHEADER">
24      <table summary="Header navigation table" width="100%" border=
25      "0" cellpadding="0" cellspacing="0">
26        <tr>
27          <th colspan="3" align="center">LPRng Reference Manual: 5
28          Sep 2003 (For LPRng-3.8.22)</th>
29        </tr>
30
31        <tr>
32          <td width="10%" align="left" valign="bottom"><a href=
33          "rfc1179.htm" accesskey="P">Prev</a></td>
34
35          <td width="80%" align="center" valign="bottom">Chapter
36          20. The Most Frequently Asked Questions</td>
37
38          <td width="10%" align="right" valign="bottom"><a href=
39          "remotelogger.htm" accesskey="N">Next</a></td>
40        </tr>
41      </table>
42      <hr align="LEFT" width="100%">
43    </div>
44
45    <div class="SECT1">
46      <h1 class="SECT1"><a name="AEN10839">20.7. I want to replace
47      lp, lpstat, etc, but my programs need them</a></h1>
48
49      <p><b class="APPLICATION">LPRng</b> was designed as a
50      replacement the BSD printing system. As such, it inherited
51      its command names and options from the latter. As you might
52      know, SystemV uses a totally different set of commands,
53      incompatible with the BSD ones.</p>
54
55      <p>The good news is that the <b class="APPLICATION">LPRng</b>
56      binaries include an emulation for the SystemV commands. (See
57      <a href="lpsimulation.htm">lp Simulation</a> for details.
58      Briefly, you create links to the appropriate programs, and
59      invoke them by the link names. <span class="emphasis"><i
60      class="EMPHASIS">Actually, these links are installed by
61      default in recent versions.</i></span></p>
62
63      <div class="INFORMALEXAMPLE">
64        <a name="AEN10848"></a>
65<pre class="SCREEN">
66    ln -s lpr lp
67    ln -s lpq lpstat
68    ln -s lprm cancel
69</pre>
70      </div>
71      <br>
72      <br>
73
74      <p>If you make these links, calling <var class=
75      "LITERAL">lp</var>, <var class="LITERAL">lpstat</var> and
76      <var class="LITERAL">cancel</var> will give you a (partial)
77      SVR4 emulation. They have their own man pages, which you
78      should read if you need the emulation.</p>
79
80      <p>Since it is a <span class="emphasis"><i class=
81      "EMPHASIS">partial</i></span> emulation, you shouldn't expect
82      everything to work. In particular, I would guess that any
83      script which relies on the output format of one of your
84      system binaries will break. Again, see <a href=
85      "lpsimulation.htm">lp Simulation</a> for more details or
86      additional suggestions.</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          "rfc1179.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          "remotelogger.htm" accesskey="N">Next</a></td>
103        </tr>
104
105        <tr>
106          <td width="33%" align="left" valign="top">What is RFC
107          1179, the Line Printer Daemon Protocol?</td>
108
109          <td width="34%" align="center" valign="top"><a href=
110          "faq.htm" accesskey="U">Up</a></td>
111
112          <td width="33%" align="right" valign="top">Remote Logger
113          Operation</td>
114        </tr>
115      </table>
116    </div>
117  </body>
118</html>
119
120