tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Richard Bemrose <rb237 () phy ! cam ! ac ! uk>
To: tru64-unix-managers
Subject: SUMMARY: duplex printing and printer filters
Date: Tue, 30 Mar 1999 11:17:47 +0000	[thread overview]
Message-ID: <96079038516012.tru64-unix-managers.marc@archive.invalid> (raw)

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 <choon_pheng@hotmail.com>, 
	Roy Smith <roy@popmail.med.nyu.edu>, 
	Andrew Leahy <A.Leahy@cit.nepean.uws.edu.au>, 
	Davis <Davis@Tessco.Com>, 
	"richard n. frank" <rnfrank@wolfram.llnl.gov>

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 <ctrl>v
followed by <esc>

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

                 reply	other threads:[~1999-03-30 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox