LPRng Reference Manual: 5 Sep 2003 (For LPRng-3.8.22)
Prev | Chapter 18. Accounting | Next

# 18.2. Accounting Information

The :as=... and :ae=... options specify the the start of job and end of job accounting information or a set of programs to be run to record the start and end of job accounting information. The option values are expanded using the same methods as for the filter options. For example:

        :as=jobstart $H $n $P $k $b $t
          jobstart '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \
            '-b1093' '-tNov  5 19:39:25'
        :ae=jobend $H $n $P $k $b $t
          jobend '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \
            '-b1093' '-tNov  5 19:39:59'

If the options have the form :as=|/path ..., then the specified program is run to record the information. By convention the accounting information is passed as command line values to the program. The programs are run in the same manner as a print filter. When the :as or :ae value specifies a program then logging using the :af option values in the next section is not performed. For example:

        :as=|/usr/local/libexec/jobstart $H $n $P $k $b $t
          /usr/local/libexec/jobstart '-Hh4.private' '-nroot' \
          '-Pps' '-kcfA938h4.private' '-b1093' '-tNov  5 19:39:25'
        :ae=jobend $H $n $P $k $b $t
          jobend '-Hh4.private' '-nroot' '-Pps' '-kcfA938h4.private' \
            '-b1093' '-tNov  5 19:39:59'

Prev | Home | Next
Accounting | Up | Accounting File