Further to my previous mail I gave up using the accounting features of LPRng
as they were clearly busted and apparently no longer useful.
I went back as far as 3.6.12 and found the code was still broken but I can't
see why as it looks like it should work as I expect it to.
In order to get accounting back online I went for the ifhp accounting
system using the "accounting" variable. I found:
1. The options as documented were not provided. In fact no options
are put on the command line for the accounting script. The
supplied sample script seems to expect them as well but I can confirm
that none are sent.
2. The accounting.c file seems to intend to provide some data through
the stdin of the script. However this doesn't match what the comment
at the top of the file states is going to be provided. Also note that
the file descriptor used to write the data into a temporary file (why?)
is closed before the script is called so the script can never read it.
So the accounting script get started with no options and its stdin
has already been closed.
I'm beginning to suspect that printer accounting is no longer something that
recent editions of LPRng is used for. I don't mind putting in some time and
effort sorting it out but I'd just like to check that someone else didn't
change it to the current scheme for a reason.
--
______ Internet :[EMAIL PROTECTED] Jonathan Knight,
/ Department of Computer Science
/ _ __ Telephone : +44 1782 583437 University of Keele, Keele,
(_/ (_) / / Fax : +44 1782 713082 Staffordshire. ST5 5BG. U.K.
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------