Matt Forrest wrote:
What we've done is the following:
- use software to estimate the # of pages printed (yes, i know it's bad
and easily fooled)
- debit the student's account for the amount estimated (cancel the job if
insufficient balance)
- reconcile the hardware count to the estimation and flag for manual
inspection if the difference is more than 1 or 2 pages.
In the rare case that someone aborts the job, they've already been charged
the estimated cost. Their account is adjusted with the difference
between what was actually printed and the estimate after the next
print job raises the flag.
How you can tie these information through jobs ?
You add an estimation, then the job abort. On the 'next' job you must check if any
before has aborted ?
We rarely have problems with students trying to cheat the system.
Most of the jobs that we end up inspecting are cases where the printer has
crashed or jammed.
You're lucky, or maybe we are italian .... :-))
On Wed, 13 Oct 2004, Rabellino Sergio wrote:
Date: Wed, 13 Oct 2004 12:58:43 +0200
From: Rabellino Sergio <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: LPRng: Accounting Related Question
Dear list,
i've upgraded to the latest release, hoping that helps, but my
accounting problem was not solved.... Let's me explain....
I need to update the accounting information about print jobs in
'real-time' into a mysql DB, to implement a real-time quota check for
our students in the cs-labs. Almost all the things are fine, so I can
check the print quota and manage to print or not, but the problem is
about the aborting of a job. Using the ifhp accounting I can get the
printing status from the printer into the fileend line, but if I start a
job of 500 pages, then at 490 pages I send a job abort, the fileend will
not be raised, so I loose the only chance to bill the user for that
print job. The solution in the manual (see the next job start and count
the difference....) is not reasonable for a 'real-time' check, I believe
it's too complex to implement (or I'm wrong ?).
Someone has solved this, or there is a workaround ?
Tks in advance.
--
Dott. Sergio Rabellino
Technical Staff
Department of Computer Science
University of Torino (Italy)
http://www.di.unito.it/~rabser
Tel. +39-0116706701
Fax. +39-011751603
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
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, call Patrick Powell or one of the friendly
staff at Astart Technologies for help. Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-----------------------------------------------------------------------------