File: accountingref.htm

package info (click to toggle)
lprng 3.8.10-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 13,076 kB
  • ctags: 4,348
  • sloc: ansic: 35,394; sh: 10,756; perl: 2,210; makefile: 1,046
file content (205 lines) | stat: -rw-r--r-- 6,583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>Accounting</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="Adding Authentication Support"
    href="x9357.htm">
    <link rel="NEXT" title="Accounting Information" href=
    "x9483.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: 1 Apr 2002
          (For LPRng-3.8.10)</th>
        </tr>

        <tr>
          <td width="10%" align="left" valign="bottom"><a href=
          "x9357.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">
          </td>

          <td width="10%" align="right" valign="bottom"><a href=
          "x9483.htm" accesskey="N">Next</a></td>
        </tr>
      </table>
      <hr align="LEFT" width="100%">
    </div>

    <div class="CHAPTER">
      <h1><a name="ACCOUNTINGREF">Chapter 18. Accounting</a></h1>

      <div class="TOC">
        <dl>
          <dt><b>Table of Contents</b></dt>

          <dt>18.1. <a href=
          "accountingref.htm#ACCOUNTINGSERVER">Accounting Printcap
          Options</a></dt>

          <dt>18.2. <a href="x9483.htm">Accounting
          Information</a></dt>

          <dt>18.3. <a href="x9497.htm">Accounting File</a></dt>

          <dt>18.4. <a href="x9537.htm">Authorization and
          Quotas</a></dt>

          <dt>18.5. <a href="x9562.htm">Accessing Printer Hardware
          Pagecounters</a></dt>

          <dt>18.6. <a href="x9573.htm">Reliable
          Accounting</a></dt>

          <dt>18.7. <a href="x9588.htm">\<b class=
          "APPLICATION">LPRng</b> accounting.pl Utility</a></dt>
        </dl>
      </div>

      <p>In Academic institutions, avoiding printing accounting has
      been regarded as a challenge, an ongoing game of fat cat and
      poor starving mouse, between the brutal and corrupt
      Administration and the poor, downtrodden, over-charged
      student. We will disregard the fact that if most students put
      as much effort into their studies as in finding ways to avoid
      accounting procedures then they would be Rhodes Scholar
      material, but I digress...</p>

      <p>There are two approaches to printing accounting: use
      software determine the number of pages that should be printed
      or use a hardware pagecounter facility on the printer to
      accurately determine the number of pages used. While the
      software method works well in a relatively error and security
      compromise free environment and where print jobs do not jam,
      for accurate account a hardware level pagecounter or some
      other method must be used. LPRng provides facilities to use
      either method to determine page counts.</p>

      <p>There are also two methods available to store the actual
      accounting information: the simple <i class="EMPHASIS">save
      to file</i> method and the more complex <i class=
      "EMPHASIS">save to program</i> method. LPRng provides support
      for both methods.</p>

      <div class="SECT1">
        <h1 class="SECT1"><a name="ACCOUNTINGSERVER">18.1.
        Accounting Printcap Options</a></h1>

        <p>The accounting facilities are controlled and enabled by
        the following entries in the printcap file.</p>

        <div class="INFORMALTABLE">
          <a name="AEN9452"></a>

          <table border="1" class="CALSTABLE">
            <thead>
              <tr>
                <th align="LEFT" valign="TOP">Tag</th>

                <th align="LEFT" valign="TOP">Default Value</th>

                <th align="LEFT" valign="TOP">Purpose</th>
              </tr>
            </thead>

            <tbody>
              <tr>
                <td align="LEFT" valign="TOP">af</td>

                <td align="LEFT" valign="TOP">NULL</td>

                <td align="LEFT" valign="TOP">accounting file
                name</td>
              </tr>

              <tr>
                <td align="LEFT" valign="TOP">as</td>

                <td align="LEFT" valign="TOP">"jobstart $H $n $P $k
                $b $t"</td>

                <td align="LEFT" valign="TOP">accounting info for
                job start</td>
              </tr>

              <tr>
                <td align="LEFT" valign="TOP">ae</td>

                <td align="LEFT" valign="TOP">"jobend $H $n $P $k
                $b $t"</td>

                <td align="LEFT" valign="TOP">accounting info for
                job end</td>
              </tr>

              <tr>
                <td align="LEFT" valign="TOP">achk</td>

                <td align="LEFT" valign="TOP">FALSE</td>

                <td>&nbsp;</td>
              </tr>

              <tr>
                <td align="LEFT" valign="TOP">la</td>

                <td align="LEFT" valign="TOP">TRUE</td>

                <td align="LEFT" valign="TOP">do accounting for
                'local' printer</td>
              </tr>

              <tr>
                <td align="LEFT" valign="TOP">ar</td>

                <td align="LEFT" valign="TOP">FALSE</td>

                <td align="LEFT" valign="TOP">do accounting for
                'remote' transfers</td>
              </tr>
            </tbody>
          </table>
        </div>
      </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=
          "x9357.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=
          "x9483.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Adding
          Authentication Support</td>

          <td width="34%" align="center" valign="top">&nbsp;</td>

          <td width="33%" align="right" valign="top">Accounting
          Information</td>
        </tr>
      </table>
    </div>
  </body>
</html>