On Sun, 9 Nov 2003, Henrik Edlund wrote:

> But in reality, if you use the PJL method, you will never get any reading
> at all if the printer is turned off right? Because it seems the PJL method
> is dependent on asking the printer after the job is done how many
> impressions were used. This information is lost if the printer is turned
> off right?

The "@PJL INFO PAGECOUNT" command is supposed to return the number
of pages printed by the print engine (and in once case I've noticed
it will return the number of color pages as a separate line-item). If
the printer is turned off before you can get the results of the final
"INFO PAGECOUNT" command, and if ifhp decides to abort the job delivery
for whatever reason (timeout, gets an EOF from the socket, etc.) then
lpd will resubmit the job later. In the "acct" file you should see
"filestart" record with the page counter from the previous failed job,
but with no cooresponding "fileend" before the next "jobstart". The next
"start" line will have the pagecount as sampled before the banner page
is printed, so you can get an idea of the number of pages the incomplete
previous job printed before things went wrong by subtracting this new
"start" pagecount from the previous "filestart" pagecount.

Beware of the printer/copier combo systems whose photocopy operations
increment the number reported by "PJL INFO PAGECOUNT".


Jim Trocki <[EMAIL PROTECTED]>
Computer System and Network Engineer
Transmeta Corporation
Santa Clara, CA

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