tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: duplex printing and printer filters
@ 1999-03-30 11:17 Richard Bemrose
  0 siblings, 0 replies; only message in thread
From: Richard Bemrose @ 1999-03-30 11:17 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-30 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-30 11:17 SUMMARY: duplex printing and printer filters Richard Bemrose

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