Your pagecount example isn't quite right.. it will show you how many pages
have been physically printed when the next print job is coming through.
There are many instances where the old print job may still be going through
the printer's pipeline while the next print job is being accepted leading to
bogus pagecount values.

This is our experience with lexmark printers and a couple of hp's that I've
tested at least.

Travis

         >
         >The printcap entry wasn't right.
         >
         >Here is the corrected message:
         >
         >I have integrated a new printer to our print service.
         >
         >Because I didn't find hp4100 as a template in the ifhp.conf
         >file I use the configuration part from our working
         >hp4050 printer ( I didn't have any problems with hp printers before):
         >a) printcap entry
         >
         >D_RTL4
         > :lp=xxx.xx.xx.xxx%9100
         > :ifhp=model=hp4050
         > :sd=/var/spool/lpd/D_RTL4
         > :if=/usr/local/libexec/filters/ifhp
         > :lf=log
         > :mx#0:sh:sf
         >#
         >
         >[hp4050]
         >pcl
         >ps
         >text
         >pjl
         >pagecount
         >sync
         >status
         >
         >file_output_match = [
         > *postscript*   ps
         > *text*         ps /usr/local/bin/a2ps -q --portrait --margin -1 -b -
         >j
         >--center-title=\%s{f} -u --left-footer=\%s{n}@\%s{h} -M A4  -o-
         >]
         >#
         >
         >The results of our test:
         >>>> the printer works right  ... it prints what it has to print...
         >>>> the accounting filter gives "0 pages" as result for every print j
         >ob
         >
         >???
         >Really the integrated pagecounter counts the really printed pages...
         >If the next job starts, the pagecounter has the right value:
         >
         > old_pagecounter + number_of_pages_from_the previous_job
         >
         >???
         >
         >
         >It follows an example of status messages to 1 print job:
         >::::::::::::::::::::::::::::::::::::::::::::::::::::::::
         >setting up printer at 13:02:10.948
         >getting sync using 'pjl' at 13:02:10.950
         >sync done at 13:02:11.974
         >getting pagecount using 'pjl' at 13:02:11.974
         >final pagecount 28 at 13:02:12.515
         >accounting at start, pagecount 28, pages 0 at 13:02:12.515
         >sending job file at 13:02:13.344
         >starting transfer at 13:02:13.344
         >initial job type 'text' at 13:02:13.344
         >final job type 'ps' at 13:02:13.345
         >job identified as 'ps', converter '/usr/local/bin/a2ps -q --portrait
         >--margin -1 -b -j  --center-title=\%s{f} -u --left-footer=\%s{n}@\%s{
         >h} -M
         >A4  -o- ' at 13:02:13.345
         >started converter '/usr/local/bin/a2ps' at 13:02:13.346
         >converter done, output 14224 bytes at 13:02:13.584
         >transferring 14 Kbytes at 13:02:13.585
         >71 percent done at 13:02:13.586
         >100 percent done at 13:02:13.586
         >finished writing file, cleaning up at 13:02:13.586
         >sent job file at 13:02:13.586
         >doing cleanup at 13:02:13.586
         >getting end using 'job' at 13:02:13.587
         >getting pagecount using 'pjl' at 13:02:17.401
         >final pagecount 28 at 13:02:17.814
         >accounting at end, pagecount 28, pages 0 at 13:02:17.814  <<<< pages 
         >0
         >done at 13:02:19.297
         >
         >
         >
         >
         >MfG Margrit Lottmann 
         >
         >
         >  +------------------------------------------------------------------
         >-----+
         >  |                                             phone : +49 391 67  1
         >8572 |
         >  |                                                   +49 391 67  128
         >19 |
         >  |              Margrit Lottmann                 fax : +49 391 67  1
         >1134 |
         >  |                                                                  
         >     |
         >  | Otto-von-Guericke-Universitaet Magdeburg                         
         >     |
         >  | Universitaetsrechenzentrum, URZ-N                                
         >     |
         >  | Universitaetsplatz 2                                             
         >     |
         >  | D-39106 Magdeburg,  Germany                                      
         >     |
         >  |                                                                  
         >     |
         >  |              [EMAIL PROTECTED]               
         >           |
         >  +------------------------------------------------------------------
         >-----+
         >
         >
         >
         >
         >---------------------------------------------------------------------
         >--------
         >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-request
         >s
         >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 majordomo@lprng.
         >com
         >with:                           | example:
         >subscribe LIST <mailaddr>       |  subscribe lprng-digest myname@host
         >.org
         >unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
         >
         >If you have major problems,  send email to [EMAIL PROTECTED] with t
         >he word
         >LPRNGLIST in the SUBJECT line.
         >---------------------------------------------------------------------
         >--------
         >

Travis Freeland

Systems Section Leader
Information Technology Services
Deakin University
[EMAIL PROTECTED]

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