Greetings,

   I have an HP LaserJet 4Si (without the PostScript option installed)
on which I'd like to have page accounting enabled, but it seems that
IFHP cannot obtain a page counter value. 

This is my /etc/printcap:

   # /etc/printcap
   #
   lp:
   :lp=/dev/lp0
   :sd=/var/spool/lpd/%P
   :filter=/usr/libexec/filters/ifhp -Ttrace,debug=1
   :ifhp=model=hp4si,ps@
   :of=/usr/libexec/filters/ifhp 
   :la=TRUE
   :ar=TRUE
   :af=/var/spool/lpd/%P/acct

And this is the output of lpq -llll:

   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.204 [12710]
   Process_job: sent job file' at 00:05:57.220
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.204 [12710]
   Init_outbuf: Outbuf 0x806ac08, Outmax 10240, Outlen 0' at 00:05:57.220
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.204 [12710]
   Init_outbuf: Outbuf 0x806ac08, Outmax 10240, Outlen 0' at 00:05:57.221
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.205 [12710]
   End_of_job: end sync and pagecount, do_pagecount 0, ps 0, pjl 0' at
   00:05:57.221
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.205 [12710]
   Do_accounting: pagecounter 0, pages 0' at 00:05:57.222
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.205 [12710]
   Accounting: script '<NULL>', Accountfile '/var/spool/lpd/lp/acct',
   output 'fileend '-b0' '-T1' '-q12710' '-p0'
   '-t2000-11-16-00:05:57.205''' at 00:05:57.222
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.205 [12710]
   Accounting: writing to 5, 'fileend '-b0' '-T1' '-q12710' '-p0'
   '-t2000-11-16-00:05:57.205' '-Aigr@ashes+699' '-nigr' '-Plp''' at
   00:05:57.223
   Status: IF filter 'ifhp' filter msg - 'ifhp 00:05:57.205 [12710]
   Process_job: done' at 00:05:57.223
   Status: IF filter 'ifhp' filter finished at 00:05:57.224
   Status: OF filter finished at 00:05:57.226
   Status: printing finished at 00:05:57.226
   Status: accounting at end at 00:05:57.227
   Status: finished 'igr@ashes+699', status 'JSUCC' at 00:05:57.228
   Status: subserver pid 12701 exit status 'JSUCC' at 00:05:57.230
   Status: [EMAIL PROTECTED]: job 'igr@ashes+699' printed at
   00:05:57.232
   Status: job 'igr@ashes+699' removed at 00:05:57.235
   Filter_status: Send_job: read total 0 at 00:05:57.203
   Filter_status: Send_job: finished file transfer at 00:05:57.203
   Filter_status: Init_outbuf: Outbuf 0x806ac08, Outmax 10240, Outlen 2
   at 00:05:57.204
   Filter_status: Send_job: data sent at 00:05:57.204
   Filter_status: Process_job: sent job file at 00:05:57.204
   Filter_status: Init_outbuf: Outbuf 0x806ac08, Outmax 10240, Outlen 0
   at 00:05:57.204
   Filter_status: Init_outbuf: Outbuf 0x806ac08, Outmax 10240, Outlen 0
   at 00:05:57.204
   Filter_status: End_of_job: end sync and pagecount, do_pagecount 0, ps
   0, pjl 0 at 00:05:57.205
   Filter_status: Do_accounting: pagecounter 0, pages 0 at 00:05:57.205
   Filter_status: Accounting: script '<NULL>', Accountfile
   '/var/spool/lpd/lp/acct', output 'fileend '-b0' '-T1' '-q12710' '-p0'
   '-t2000-11-16-00:05:57.205'' at 00:05:57.205
   Filter_status: Accounting: writing to 5, 'fileend '-b0' '-T1'
   '-q12710' '-p0' '-t2000-11-16-00:05:57.205' '-Aigr@ashes+699' '-nigr'
   '-Plp'' at 00:05:57.205
   Filter_status: Process_job: done at 00:05:57.206
   Filter_status: (of) OF process running at 00:05:57.224
   Filter_status: (of) pagecounter 0, pages 0 at 00:05:57.225
   Filter_status: (of) ending OF mode passthrough at 00:05:57.225
   Filter_status: (of) done at 00:05:57.225



Does anybody have a clue why IFHP gets a zero page count value?

        Thanks,
        Ivan Raikov

-- 
Ivan Raikov 
800 Fowler Street, Atlanta, Georgia 30313-2554
Phone: 404-892-6579 x. 106
Email: [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