On Tue, 11 Nov 2003, Henrik Edlund wrote:
> On Tue, 11 Nov 2003, Johan Bengtsson wrote:
>
> JB> I see you mention the software method, then you mention two methods
> JB> (PJL + SNMP) that interacts with the hardware counter on the printer.
> JB> It's possible to do that with PS commands as well - that should
> JB> definitely be mentioned.
>
> What are these PS commands then and do you an URL?
the code is in ifhp's ifhp.conf file, and you can enable using postscript
sync + status + pagecounting by specifying "sync=ps" and "pagecount=ps"
in your config. here's what it looks like:
ps_status_code=
%!PS-Adobe-2.0
## for PS Level 3 add:
# false 0 startjob pop
( %%[ echo: NAME ]%% ) print () = flush
ps_pagecount_code=
%!PS-Adobe-2.0
## for PS Level 3 add:
# false 0 startjob pop
/p{print}def ( %%[ pagecount: ) p
statusdict begin pagecount end 20 string cvs p
( ]%% ) p () = flush
i'm using this on a savin 2055DP, 9955DP, and 9965DP because their pjl
is broken. it works well. it would work even better if the printer didn't
completely stop responding when it ran out of paper :)
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------