On Fri, Nov 14, 2003 at 12:05:13AM +0100, Henrik Edlund wrote:
> On Thu, 13 Nov 2003, Jim Trocki wrote:
> 
> JT> > 4.2.3 PJL
> JT> >
> JT> > Hewlett-Packard's Printer Job Language (PJL) is used by many existing
> JT> > accounting applications. A connection is held open to the printer after
> JT> > the job has been sent to it, periodically querying for whether the job is
> JT> > done or not. Before the job and when the job finishes, the total number of
> JT> > impressions reported by the printer is read. The number of impressions
> JT> > used by the job can then be calculated. The PJL commands JOB, EOJ, ECHO
> JT> > and USTATUS can be used to retrieve the total number of impressions and
> JT> > check on printer status [PJL].
> JT>
> JT> "INFO PAGECOUNT" is the PJL command to query the impressions counter,
> JT> which is cumulative across jobs.
> 
> And what do you use ECHO for? JOB, EOJ; job status? USTATUS, printer
> status?

The "PJL ECHO" command is not supposed to take effect until
the previous job finishes.

I will not quote from the PJL reference manual,  but:

Printer Job Language Technical Reference Manual (hard copy),
Edition 6, 1995

Page 7-14:

In a multi-user environment the printer may respond to
may different status requests...

Use the ECHO command to synchronize status so that you
know that the status you are receiving is the requested
status. To do this, send an ECHO command to the printer and
then discard the incoming status messages until your message
is echoed.


Just for giggles, I looked up the PJL USTATUS JOB=ON.
Page 7-34:

The @PJL USTATUS JOB=ON command is used to notify the application
each time a JOB comand is encountered and

<MY EMPHASIS>

when the final page of a job is in the output tray and
and EOJ command has been received.

</MY EMPHASIS>

You might guess that this is NOT the behaviour in a large
number of printers.

:-)


-- 
Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

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