From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079038516012.tru64-unix-managers.marc@archive.invalid> From: Richard Bemrose Date: Tue, 30 Mar 1999 11:17:47 +0000 To: tru64-unix-managers Subject: SUMMARY: duplex printing and printer filters X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079038516012 Hi fellow admins, In my original question I asked who I could set up our HP4100N printer to print in duplex mode. I must first thank the following people for their speedy replies: Choon-Pheng Lim , Roy Smith , Andrew Leahy , Davis , "richard n. frank" There seems to by a variety of options which are summarised below: 1) GNU enscript as a text-to-ps filter and use the -DDuplex:true flag 2) Use the LPRng package (lpd replacement) and use -Zduplex flag ( LPRng is available from http://www.astart.com/lprng/LPRng.html ) 3) Obtain the hplj4000tn.pcf file from Compaq Services (Unix Kernel team) 4) append HP PCL codes to the beginning of a file In the end I opted for option 4) and inserted PCL (printer command language) or PJL (printer job language) header/footer to the printer jobs: Duplex|duplex:\ :of=/usr/lbin/hpduplex:\ :lf=/usr/adm/duplex:\ :lp=/dev/null:\ :sd=/usr/spool/duplex:\ :sh: lp5:\ :lf=/usr/adm/lp5err:\ :lp=:\ :rm=spooler.phy.cam.ac.uk:\ :rp=hplj4000:\ :sd=/usr/spool/lpd5: Where /usr/lbin/hpduplex contains: -- cut -- #!/bin/sh - cat /usr/lbin/hpduplexhead - /usr/lbin/hpduplextail | lpr -Plp5 -- cut -- and /usr/lbin/hpduplexhead is: -- cut -- ^[%-12345X@PJL JOB ^[%-12345X@PJL SET DUPLEX=ON -- cut -- and /usr/lbin/hpduplextail is: -- cut -- ^[%-12345X@PJL EOJ ^[%-12345 -- cut -- Note: '^[' is the escape char - within vi and insert mode press v followed by Hewlett-Packard has a set of 3 manuals which describes all PCL znd PJL codes in detail (Part # 5021-0328, 5021-0329, and 5961-0509 cost about $100) [Thanks Richard Frank] I hope this helps. Regards, Rich /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\ /_/ Richard A Bemrose /_\ Polymers and Colloids Group \_\ /_/ email: rb237@phy.cam.ac.uk /_\ Cavendish Laboratory \_\ /_/ Tel: +44 (0)1223 337 267 /_\ University of Cambridge \_\ /_/ Fax: +44 (0)1223 337 000 /_\ Madingley Road \_\ /_/ Mobile: +44 (0)410 168 873 / \ Cambridge, CB3 0HE, UK \_\ /_/_/_/_/_/_/ http://www.poco.phy.cam.ac.uk/~rb237 \_\_\_\_\_\_\_\ "Life is everything and nothing all at once" -- Billy Corgan, Smashing Pumpkins