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>Accounting Information</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="Accounting " href="accountingref.htm"> 12 <link rel="PREVIOUS" title="Accounting " href= 13 "accountingref.htm"> 14 <link rel="NEXT" title="Accounting File" href="x9696.htm"> 15 </head> 16 17 <body class="SECT1" 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 "accountingref.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom">Chapter 32 18. Accounting</td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "x9696.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="SECT1"> 42 <h1 class="SECT1"><a name="AEN9682">18.2. Accounting 43 Information</a></h1> 44 45 <p>The <var class="LITERAL">:as=...</var> and <var class= 46 "LITERAL">:ae=...</var> options specify the the start of job 47 and end of job accounting information or a set of programs to 48 be run to record the start and end of job accounting 49 information. The option values are expanded using the same 50 methods as for the filter options. For example:</p> 51 52 <div class="INFORMALEXAMPLE"> 53 <a name="AEN9687"></a> 54<pre class="SCREEN"> 55 :as=jobstart $H $n $P $k $b $t 56 jobstart '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \ 57 '-b1093' '-tNov 5 19:39:25' 58 :ae=jobend $H $n $P $k $b $t 59 jobend '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \ 60 '-b1093' '-tNov 5 19:39:59' 61</pre> 62 </div> 63 <br> 64 <br> 65 66 <p>If the options have the form <var class= 67 "LITERAL">:as=|/path ...</var>, then the specified program is 68 run to record the information. By convention the accounting 69 information is passed as command line values to the program. 70 The programs are run in the same manner as a print filter. 71 When the <var class="LITERAL">:as</var> or <var class= 72 "LITERAL">:ae</var> value specifies a program then logging 73 using the <var class="LITERAL">:af</var> option values in the 74 next section is not performed. For example:</p> 75 76 <div class="INFORMALEXAMPLE"> 77 <a name="AEN9694"></a> 78<pre class="SCREEN"> 79 :as=|/usr/local/libexec/jobstart $H $n $P $k $b $t 80 /usr/local/libexec/jobstart '-Hh4.private' '-nroot' \ 81 '-Pps' '-kcfA938h4.private' '-b1093' '-tNov 5 19:39:25' 82 :ae=jobend $H $n $P $k $b $t 83 jobend '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \ 84 '-b1093' '-tNov 5 19:39:59' 85</pre> 86 </div> 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 "accountingref.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 "x9696.htm" accesskey="N">Next</a></td> 103 </tr> 104 105 <tr> 106 <td width="33%" align="left" valign="top">Accounting</td> 107 108 <td width="34%" align="center" valign="top"><a href= 109 "accountingref.htm" accesskey="U">Up</a></td> 110 111 <td width="33%" align="right" valign="top">Accounting 112 File</td> 113 </tr> 114 </table> 115 </div> 116 </body> 117</html> 118 119