--On Friday, December 21, 2001 09:00:22 PM +0000 [EMAIL PROTECTED] wrote:
> Date: Fri, 21 Dec 2001 11:42:08 +0100 > From: Fr�d�ric Oger <[EMAIL PROTECTED]> > Subject: LPRng: Accounting setup problem > > It prints perfectly but the page count is always 0. > Here's my printcap : [ ... ] > ifhp_options=status@,sync@,pagecount@,waitend@ printerdb_entry=hp6mp Someone has already mentioned that the '@' on the pagecount option above is actually causing the opposite of what you intended. I'm still researching my pagecount always zero problem however. I suspect something about operating a local attached hp8100 (ie. :lp=/dev/lp0) is causing the problem since our LAN attached hp8100 printers get good pagecounts. My printcap specifies :ifhp=model=hp8100,pagecount,waitend,status@. Here's some debug output that may hold clues for someone who knows what to look for: #/usr/libexec/filters/ifhp -Tmodel=hp8100,dev=/dev/lp0,pagecount,waitend,status@,trace,debug < .cshrc ifhp 15:40:26.938 [24158] main: using model 'hp8100' ifhp 15:40:26.942 [24158] Process_job: setting up printer ifhp 15:40:26.942 [24158] Do_accounting: pagecounter 0 ifhp 15:40:26.944 [24158] Process_job: sending job file ifhp 15:40:26.944 [24158] Send_job: starting transfer ifhp 15:40:26.945 [24158] Use_file_util: file program = '/usr/bin/file -' ifhp 15:40:26.946 [24158] Filter_file: started FILE_UTIL- 'file' ifhp 15:40:26.975 [24158] Use_file_util: file information = 'ascii_text' ifhp 15:40:26.975 [24158] Send_job: initial job type 'ascii_text' ifhp 15:40:26.975 [24158] Send_job: decoded job type 'PCL' ifhp 15:40:26.975 [24158] Send_job: job type 'PCL' ifhp 15:40:26.977 [24158] Send_job: transferring 210 bytes ifhp 15:40:26.979 [24158] Send_job: 100 percent done ifhp 15:40:26.979 [24158] Send_job: data sent ifhp 15:40:26.979 [24158] Process_job: sent job file ifhp 15:40:26.981 [24158] Do_accounting: pagecounter 0, pages 0 ifhp 15:40:26.981 [24158] Process_job: done I'm open for suggestions of things to try to get pagecounting working on this printer. A comment about that status@ parm above. If I specify status (and debug=1 so as to display these messages) then ifhp just runs off seemingly in an endless loop displaying: ifhp 15:48:02.660 [24190] Write_read_timeout: Read_status_timeout returned 0 ifhp 15:48:02.661 [24190] Read_status_timeout: timeout -1, read() returned 0, count 0 ifhp 15:48:02.662 [24190] Read_status_timeout: no status read, timeout -1 ifhp 15:48:02.662 [24190] Write_read_timeout: Read_status_timeout returned 0 ifhp 15:48:02.663 [24190] Read_status_timeout: timeout -1, read() returned 0, count 0 ifhp 15:48:02.663 [24190] Read_status_timeout: no status read, timeout -1 ... etc. etc. TIA -ct ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
