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_at_hotmail.com>, 
        Roy Smith <roy_at_popmail.med.nyu.edu>, 
        Andrew Leahy <A.Leahy_at_cit.nepean.uws.edu.au>, 
        Davis <Davis_at_Tessco.Com>, 
        "richard n. frank" <rnfrank_at_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_at_PJL JOB
^[%-12345X_at_PJL SET DUPLEX=ON
-- cut --
and /usr/lbin/hpduplextail is:
-- cut --
^[%-12345X_at_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_at_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
Received on Tue Mar 30 1999 - 11:21:13 NZST