> From [EMAIL PROTECTED] Mon Dec 15 11:20:00 2003 > Date: Mon, 15 Dec 2003 13:36:27 -0500 (EST) > From: "James.Q.L" <[EMAIL PROTECTED]> > Subject: LPRng: user quota mess up.. > To: [EMAIL PROTECTED] > > --0-141834807-1071513387=:20108 > Content-Type: text/plain; charset=us-ascii > > Hi, > > In the accounting process, i notice that one user quota being assigned to another > user. i am using the accounting.pl that comes with LPRng with some change. > > as acct shows, there are two jobs logs and they are mixed up together. > i.e the job from alexeev shows up before user 'smiles' finish his job. later user > 'smiles' finish his job first. > i think that causes my problem. because in the accounting.pl, i assume i am dealing > with one user at a time and get their quota, printed pages then update the quota > database. now when two jobs mixed up, i may end up updating one user quota for > another .. > > following is the acct log and the part i do accounting in the accounting.pl. > can you give me some suggestion as i am not sure how do i deal with this case.. > > START '[EMAIL PROTECTED]' 'P=printer4' 'n=smiles' 'H=130.63.230.132' 'D=1071447451' > filestart '-q20472' '-p356696' '-t2003-12-14-19:17:32.373' '[EMAIL PROTECTED]' > '-nsmiles' '-Pprinter4' > START '[EMAIL PROTECTED]' 'P=printer4' 'n=alexeev' 'H=130.63.230.132' 'D=1071468880' > filestart '-q21170' '-p356749' '-t2003-12-15-01:14:41.893' '[EMAIL PROTECTED]' > '-nalexeev' '-Pprinter4' > fileend '-b4' '-T54' '-q21170' '-p356753' '-t2003-12-15-01:15:34.576' '[EMAIL > PROTECTED]' '-nalexeev' '-Pprinter4' > END 't=21429' 'p=53' 's=356696' 'q=356749' 'D=1071468880' '[EMAIL PROTECTED]' > 'P=printer4' 'n=smiles' 'H=130.63.230.132' 'S=1071447451' > END 't=55' 'p=4' 's=356749' 'q=356753' 'D=1071468935' '[EMAIL PROTECTED]' > 'P=printer4' 'n=alexeev' 'H=130.63.230.132' 'S=1071468880' >
This is totally baffling me. The START/filestart/fileend/END sequence is generated by a single process, and it should exit and CLOSE the connection to the accounting file BEFORE another process starts. The only other possible cause might be if you are doing banner pages, but in this case the user names would be the same. Has anybody else seen this? Patrick Powell Astart Technologies [EMAIL PROTECTED] 6741 Convoy Court Network and System San Diego, CA 92111 Consulting 858-874-6543 FAX 858-751-2435 LPRng - Print Spooler (http://www.lprng.com) ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from 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. 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. -----------------------------------------------------------------------------
