Subject: printing PJL files??

From: "patrick finerty jr." <[email-masked]>
Date: Wed, 14 Jun 2000 09:36:33 -0400 (EDT)

hi,

i'm not having much luck printing PJL files to our HP 405 LaserWriter
using lpr. however, they work fine using pap directly. here's the
first few lines of the file:

12345X@PJL JOB
@PJL SET RESOLUTION = 300
@PJL ENTER LANGUAGE=POSTSCRIPT

%!PS-Adobe-3.0
%%Title: Microsoft Word - coli_IPMDH.doc
%%Creator: PSCRIPT.DRV Version 4.0

here's the output when using pap directly:

9:03pm zinc-> /usr/local/atalk/bin/pap -p "BR3505HP405@Biochemistry" PRINT.prn
Trying 1.94:157 ...
status: busy; source: EIO 2 (ATALK)
Connected to BR3505HP405:LaserWriter@Biochemistry.
%%[ Page: 1 ]%%
%%[ Page: 2 ]%%
%%[ LastPage ]%%
%%[ Error: undefined; OffendingCommand: ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
Connection closed.
=============

despite the error at the end, the file is printed correctly.

however, the filters or something just dies when i try to print the
file using lpr. here's the printcap entry for this printer. please let
me know if i did something wrong:

lp|rm 3505 printer|BR3505HP405@Biochemistry:\
        :sd=/var/spool/lpd/3505:\
        :lp=/dev/null:\
        :pl#63:pw#85:\
        :mx#0:\
        :sh:sf:\
        :lf=/var/log/lpd-errs:\
        :if=/usr/local/atalk/etc/filters/ifpap:\
        :of=/usr/local/atalk/etc/filters/ofpap:

the report from /var/log/messages is not informative. even though it
states that the job could not be printed, this is always printed for
all print jobs, possibly because the accounting stuff is not enabled
for these printers.

Jun 13 21:03:58 zifi ofpap[6323]: starting for ?
Jun 13 21:03:58 zifi ofpap[6323]: sending to pap[6324]
Jun 13 21:03:58 zifi ofpap[6323]: straight text
Jun 13 21:04:00 zifi ofpap[6323]: 6324 done
Jun 13 21:04:00 zifi ofpap[6323]: pausing
Jun 13 21:04:00 zifi ifpap[6325]: starting for zinc
Jun 13 21:04:00 zifi ifpap[6325]: accounting with psa[6326]
Jun 13 21:04:00 zifi ifpap[6325]: sending to pap[6327]
Jun 13 21:04:00 zifi ifpap[6325]: PostScript w/PJL
Jun 13 21:04:03 zifi ifpap[6325]: 6327 done
Jun 13 21:04:03 zifi ifpap[6325]: 6326 died with 2
Jun 13 21:04:03 zifi lpd[6322]: lp: job could not be printed (cfA000zifi.psf.sickkids.on.ca)
Jun 13 21:04:03 zifi ofpap[6323]: restarting
Jun 13 21:04:03 zifi ofpap[6323]: done
=============

also, how do i turn off accounting? i don't have any need for it.

-patrick