SUMMARY: Printer escape codes

From: Tom McCarrick <Tom.McCarrick_at_unilever.com>
Date: Tue, 3 Oct 2000 19:07:33 +0100 (GMT Daylight Time)

Thanks to:
Ernie Labonte
George Gallen
Colin Walters


Original question:

I am having a problem printing the following file. What it is supposed to print
is a label for a van salesman, with the number (54577) printed in large,bold
lettering with a product list underneath. When viewed in Unix, this file has a
lot of escape chatacters( I assume they are printer control codes).
   The first time I printed it (using ('lpr -Phpl19 54577') , the output was as
it should be. Every subsequent time, it printed blank apart from a 'Print date'
and 'Time' column at the top of the page. !! Why would it print different
second time around?
  Perhaps someone can tell me how I need to format the print output (using a
command line parameter with 'lpr', or by modifying some parameter in the
printcap file?)

Note - Printer is a HP Laserjet 4000tn.

This was the printcap entry:
hpl19|lp13|IT:\
        :af=/usr/adm/lp13acct:\
        :if=/usr/lbin/hplaser4psof:\
        :lf=/usr/adm/lp13err:\
        :lp=/:\
        :mx#0:\
        :of=/usr/lbin/hplaser4psof:\
        :pl#66:\
        :pw#80:\
        :rm=hpl19:\
        :rp=text:\
        :rw:\
        :sd=/usr/spool/lpd13:\
        :sh:\
        :xf=/usr/lbin/xf:

I believe the input & output filters were the culprits, so when I changed the
'if' and 'of' entries to:
" =/usr/lbin/pcfof +Chplj4000tn.pcf:\ " it worked like a dream (well almost).

This printcap file was created on DU V4.0D which I believe does not have the
correct input/output filters for the HP Laserjet 4000tn. DU V4.0F has the above
filters which worked for me.

Regards - Tom
Received on Tue Oct 03 2000 - 18:09:55 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT