From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97059641904870.tru64-unix-managers.marc@archive.invalid> From: "Tom McCarrick" Date: Tue, 03 Oct 2000 18:07:33 +0000 To: tru64-unix-managers Subject: SUMMARY: Printer escape codes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97059641904870 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