Thanks for that.
I'm writing a parser to print a summary of the accounting file in the
form:-
userName -> totalPagecount
as this is for page use monitering rather than full blown accounting
(next year I think!).
I'd like to be sure that I'm getting the right pagecount for the right
user (even after uncompleted jobs) & the example in the howto is
different from this.
Here's a section of my file numbered for convenience.
I noticed in this small example that
(line 1) START -> 'D=997869440' (odd looking date)
is the same as
(line 9) END -> 'S=997869440' (System 'name' stuff...)
and the same for matching fields in lines 4 & 10.
Do these fields START D= and END S= *always* match for a job? They
*appear* to in my file but that's only 53 lines long so far so I can't
be sure. The END -> p= 'pages (sides) used' count is correct for the
jobs in this example (I sent/cancelled them!).
Also, does anyone have a longer (1000+ lines) accounting file in the
same format that I can use for a more realistic test?
Regards
Ian
1.START 'A=cs99il@choochoo+5' 'P=ps6' 'n=cs99il' 'H=choochoo'
'D=997869440'
2.start '-q11009' '-p96' '-t2001-08-15-10:57:21.018'
'-Acs99il@choochoo+5' '-ncs99il' '-Pps6'
3.filestart '-q11010' '-p96' '-t2001-08-15-10:57:22.122'
'-Acs99il@choochoo+5' '-ncs99il' '-Pps6'
4.START 'A=cs99il@choochoo+33' 'P=ps6' 'n=cs99il' 'H=choochoo'
'D=997869789'
5.start '-q11037' '-p134' '-t2001-08-15-11:03:10.793'
'-Acs99il@choochoo+33' '-ncs99il' '-Pps6'
6.filestart '-q11038' '-p134' '-t2001-08-15-11:03:11.892'
'-Acs99il@choochoo+33' '-ncs99il' '-Pps6'
7.fileend '-b2' '-T25' '-q11038' '-p136' '-t2001-08-15-11:03:35.321'
'-Acs99il@choochoo+33' '-ncs99il' '-Pps6'
8.end '-b2' '-T28' '-q11037' '-p136' '-t2001-08-15-11:03:37.834'
'-Acs99il@choochoo+33' '-ncs99il' '-Pps6'
9.END 't=349' 'p=38' 's=96' 'q=134' 'D=997869789' 'A=cs99il@choochoo+5'
'P=ps6' 'n=cs99il' 'H=choochoo' 'S=997869440'
10.END 't=29' 'p=2' 's=134' 'q=136' 'D=997869818' 'A=cs99il@choochoo+33'
'P=ps6' 'n=cs99il' 'H=choochoo' 'S=997869789'
User Papowell wrote:
>
> > From [EMAIL PROTECTED] Thu Aug 16 08:30:22 2001
> > Date: Thu, 16 Aug 2001 12:58:13 +0100
> > From: Ian Lee <[EMAIL PROTECTED]>
> > To: LPRng <[EMAIL PROTECTED]>
> > Subject: LPRng: Accounting..fill in the WHATS THIS...
> >
> > Hi.
> > Here's a resume of the accounting output. Would some kind soul check my
> > labelling & let me know what the 'WHATS THIS' items are?
> > Thanks
> > Ian
> >
> > START
> > 'A= user@host+job number'
> > 'P= printer'
> > 'n= user'
> > 'H= host'
> > 'D= WHATS THIS'
>
> Date
>
> > start
> > '-q ProcessID'
> > '-p Pagecounter'
> > '-t Start time'
> > '-P printer'
> > '-H host'
> > '-n user'
> > filestart
> > '-q ProcessID'
> > '-p Pagecounter'
> > '-t Start time'
> > '-P printer'
> > '-H host'
> > '-n user'
> > fileend
> > '-b pages'
> > '-T time elapsed'
> > '-q ProcessID'
> > '-p Pagecounter'
> > '-t Start time'
> > '-P printer'
> > '-H host'
> > '-n user'
> > end
> > '-b pages'
> > '-T time elapsed'
> > '-q ProcessID'
> > '-p Pagecounter'
> > '-t Start time'
> > '-P printer'
> > '-H host'
> > '-n user'
> > END
> > 't= WHATS THIS'
>
> time stamp of end time
>
> > 'p= pages (sides) used'
> > 's= start pagecount'
> > 'q= end pagecount'
> > 'D= WHATS THIS'
>
> Date from control file
>
> > 'A= user@host+job number'
> > 'P= printer'
> > 'n= user'
> > 'H= host'
> > 'S= WHATS THIS'
>
> System 'name' stuff...
>
> >
> > ------------------------------------------
> > Ian Lee
> > Department of Computer Science
> > School of Engineering and Computer Science
> > University Of Exeter
> > Exeter EX4 4PT
> > United Kingdom
> >
> > -----------------------------------------------------------------------------
> > 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.
> > -----------------------------------------------------------------------------
> >
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
--
Ian Lee
Department of Computer Science
School of Engineering and Computer Science
University Of Exeter
Exeter EX4 4PT
United Kingdom
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------