I'm trying to use LPRng 3.6.20 w/ifhp-3.3.18 to get page counts from our
(ancient but still working great) HP IIIsimx printer. The printer works fine
but the page page count is always zero and the page counter value is
always the same number. The printcap entry is:
laser2|ps2|HP LaserJet IIIsi via Emulex NetJet|East Copy Room
:lp=laser2%2501
:ifhp=model=hpiiisi,sync@,pagecount=ps,waitend=ps
:if=/usr/local/libexec/filters/ifhp
:vf=/usr/local/libexec/filters/ifhp -c
:of=/usr/local/libexec/filters/ofhp
:fx=flpv
:pl=60
:pw=83
:sh
:rw
When I run the following command:
lptest 25 25 | ./ifhp -Tdev=laser2%2501,debug=2,model=hpiiisi,trace,sync@,pagecount=ps
I get this debugging output which shows a pagecount. Unfortuantely it's always
the SAME page count, job after job. The pagecount printed on the test page
using the local printer test function is currently 667163 and does increment with
each page printed.
So where is the page count Ifhp is getting coming from and why does it not
change?
ifhp 14:46:34.801 [12276] End_of_job: end sync and pagecount, do_pagecount 1, ps 1,
pjl 0
ifhp 14:46:34.801 [12276] Do_waitend: waitend 'ps', end_ctrl_t 'busy:idle', waitend
timeout 0, interval 300, ctrl_t_interval 3
ifhp 14:46:34.801 [12276] Do_waitend: using end_ctrl_t 'busy:idle'
ifhp 14:46:34.801 [12276] Do_waitend: getting end using 'ps'
ifhp 14:46:34.801 [12276] Do_waitend: input fd 1, output fd 1
ifhp 14:46:34.801 [12276] Init_outbuf: Outbuf 0x140012000, Outmax 10240, Outlen 0
ifhp 14:46:34.842 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:35.321 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:56.204 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:56.684 [12276] Read_status_line: read fd 1, count 41, ' %%[ echo:
14-46-34.801 PID 12276 ]%% ^M ^D'
ifhp 14:46:56.684 [12276] Init_outbuf: Outbuf 0x140012000, Outmax 10240, Outlen 0
ifhp 14:46:56.843 [12276] Read_status_line: read fd 1, count 22, '%%[ status: idle
]%%^M '
ifhp 14:46:56.843 [12276] Check_device_status: status = 'idle'
ifhp 14:46:56.843 [12276] Do_waitend: end of job detected
ifhp 14:46:56.843 [12276] Current_pagecounter: starting, use_pjl 0, use_ps 1, timeout 0
ifhp 14:46:56.843 [12276] Init_outbuf: Outbuf 0x140012000, Outmax 10240, Outlen 0
ifhp 14:46:56.843 [12276] Current_pagecounter: using '^[%-12345X@PJL
@PJL ENTER LANGUAGE = POSTSCRIPT
^D%!PS-Adobe-2.0
/p{print}def ( %%[ pagecount: ) p
statusdict begin pagecount end 20 string cvs p
( ]%% ) p () = flush
^D^[%-12345X'
ifhp 14:46:56.843 [12276] Current_pagecounter: write len 0
ifhp 14:46:57.243 [12276] Current_pagecounter: write len 0
ifhp 14:46:57.243 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:57.243 [12276] Current_pagecounter: Read_status_line_returned '1'
ifhp 14:46:57.722 [12276] Current_pagecounter: write len 0
ifhp 14:46:57.722 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:57.722 [12276] Current_pagecounter: Read_status_line_returned '1'
ifhp 14:46:58.283 [12276] Current_pagecounter: write len 0
ifhp 14:46:58.283 [12276] Read_status_line: read fd 1, count 1, '^D'
ifhp 14:46:58.283 [12276] Current_pagecounter: Read_status_line_returned '1'
ifhp 14:46:58.764 [12276] Current_pagecounter: write len 0
ifhp 14:46:58.764 [12276] Read_status_line: read fd 1, count 29, ' %%[ pagecount:
651763 ]%% ^M '
ifhp 14:46:58.765 [12276] Current_pagecounter: Read_status_line_returned '29'
ifhp 14:46:58.765 [12276] Current_pagecounter: page 1, pagecounter 651763
ifhp 14:46:58.765 [12276] Do_pagecount: pagecounter 651763
ifhp 14:46:58.765 [12276] Init_outbuf: Outbuf 0x140012000, Outmax 10240, Outlen 0
ifhp 14:46:58.765 [12276] Pjl_console: flag 1, start 0,
ifhp 14:46:58.765 [12276] Pjl_console: console msg ''
ifhp 14:46:58.765 [12276] End_of_job: doing pjl at end
ifhp 14:46:58.765 [12276] Write_out_buffer: write len 9, read_fd 1, maxtimeout 0
ifhp 14:46:58.765 [12276] Write_out_buffer: timeout 0, len 9
ifhp 14:46:58.765 [12276] Write_out_buffer: left to write 0, flag 0
ifhp 14:46:58.765 [12276] Write_out_buffer: done, returning 0
ifhp 14:46:58.765 [12276] Init_outbuf: Outbuf 0x140012000, Outmax 10240, Outlen 9
ifhp 14:46:58.765 [12276] Do_accounting: pagecounter 651763, pages 0
ifhp 14:46:58.765 [12276] Accounting: script '<NULL>', Accountfile '<NULL>', output
'fileend '-b0' '-T25' '-q12276' '-p651763' '-t2000-07-14-14:46:58.765''
ifhp 14:46:58.765 [12276] Process_job: done
- Justus
--
Think to the future and beyond....
/** Justus J. Addiss Email: [EMAIL PROTECTED] **\
<*** 3M Health Information Systems Phone: 203-949-0303 x6414 ***>
\** Wallingford, CT 06492-1802 FAX: 203-949-6455 or 6331 **/
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------