Did you solve this problem? > From [EMAIL PROTECTED] Tue Jan 22 20:01:40 2002 > From: "Simon Neilson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Please read if you have some time! > Date: Wed, 23 Jan 2002 15:01:31 +1100 > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0001_01C1A41E.D7D61430 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: 7bit > > Hi Patrick, > > I have a problem with LPRng and my new HP4100N printer. There is a > problem with the "waitend" ifhp filter. > > I have written several scripts which relies on the pagecount (-p flag) > in the acct file, for both FILESTART and FILEEND entries which appear > for each print job. > Here is an extract of my acct file: > > filestart '-q16837' '-p349858' '-t2002-01-09-02:30:01.687' > '-Asgn@BUDWEISER+1' '-nsgn' '-Plp' > fileend '-b1' '-T19' '-q16837' '-p349859' '-t2002-01-09-02:30:20.475' > '-Asgn@BUDWEISER+1' '-nsgn' '-Plp' > > This extract was taken when I used a HP4000N model printer, and as > shown, the pagecount worked correctly showing that this job consisted of > 349859 minus 349858 = 1 page. > Relevant entries in my printcap are as follows: > > :as=|/var/www/html/print/acc.php START > :ae=|/var/www/html/print/acc.php END > :af=/var/log/lpr/acct > :filter=/usr/libexec/filters/ifhp > :ifhp=model=hp4000,status,sync=ps,pagecount=ps,waitend=ps > :lf=/var/log/lpr/err > > The "acc.php" script is a script that updates a user's print quota and > reports status messages (via winpopup) to the user. > > Since I could find no filter for the new HP4100N, I simply configured > the jetdirect to contain the same IP as my HP4000N, and plugged in the > HP4100N in place of the older model. The result was that the print > filter seemed to work OK in terms of print quality, however the > pagecount (-p field) no longer reported correctly. > > I observed the reason for this is because the ":ae acc.php END" does not > execute after the last page is printed, but instead after the last page > is spooled or received by the printer - before the pagecount ticks > over.
ARGH ARGH ARGH > I can deduce this because my "acc.php END" script pushes a winpopup > exactly after the "Data" indication LED on the printer is finished, > instead of after the last page passes through the drum as it did when > the HP4000N was connected. > > I notice that the ifhp filter option includes "waitend=ps" - the 4100N > does have support for PJL settings, including "End of Job Notification". > However enabling this option makes no difference. > > I guess that the "waitend" flag will only work with an updated filter > written specifically for the HP4100. Is there such a filter which does > send a signal once the final page has physically finished printing? - or > maybe there is some setting I have neglected. Any feedback would be > very much appreciated! I will see if I can find one of these and look at it. I suspect that there is some magic PJL that needs to be added, but there is no documentation on this from HP. I will ask and see what I can do. > > Cheers, > Simon Neilson ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
