Hi,


I have following weird records/lines in the acct log file.

START '[EMAIL PROTECTED]' 'P=printer4' 'n=liugxhk' 'H=130.63.230.132' 'D=1074877590'
filestart '-q30397' '-p365769' '-t2004-01-23-12:06:32.097' '[EMAIL PROTECTED]' 
'-nliugxhk'
'-Pprinter4'
fileend '-b11' '-T40' '-q30397' '-p365780' '-t2004-01-23-12:07:11.761' '[EMAIL 
PROTECTED]'
'-nliugxhk' '-Pprinter4'
END 't=42' 'p=11' 's=365769' 'q=365780' 'D=1074877632' '[EMAIL PROTECTED]' 'P=printer4'
'n=liugxhk' 'H=130.63.230.132' 'S=1074877590'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894165'
filestart '-q30871' '-p366009' '-t2004-01-23-16:42:47.247' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894185'
filestart '-q30880' '-p366010' '-t2004-01-23-16:43:07.252' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894214'
filestart '-q30888' '-p366014' '-t2004-01-23-16:43:59.446' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894246'
filestart '-q30895' '-p366014' '-t2004-01-23-16:44:07.381' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894264'
filestart '-q30902' '-p366014' '-t2004-01-23-16:44:25.420' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'
START '[EMAIL PROTECTED]' 'P=printer4' 'n=munirs' 'H=130.63.230.132' 'D=1074894292'
filestart '-q30910' '-p366018' '-t2004-01-23-16:44:53.985' '[EMAIL PROTECTED]' 
'-nmunirs'
'-Pprinter4'

as you all can see, the rest of six print jobs didn't end with 'END'. that causes the
accounting.pl parse the log file incorrectly and mess the quota with other users. 
that's why i
something see straight 3 or 6 END records in the acct.

this happens when the printer doesn't function properly so user print job failed.

is it expected that this kind record be found in acct? how do we deal with it from 
accounting.pl ?


reading the code from the original accounting.pl, 
at line 152  my($read_all) = 0; 
at Line 199  if( $read_all ){   # second appearence.

if( $state != $FOUND_end ){
    if( $read_all ){       # Line 199
        print STDERR "$0: did not find end record in file";
        exit 0;
    }

The above code seems to aim for the situation i am having. but the question is that 
it seems to me does nothing since $read_all didn't get changed and is always 0.

but even so, it will quit the program. that way, it can never proceed print job with 
this kind of
incomplete record in acct.

Seems i am the only one having the accounting mess problem. Am i missing something 
here ? 

Help and pointers are greatly appreciated.



Qiang.

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to