From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6aa1753ae8193028 X-Google-Attributes: gidfee84,public From: Philip Sterne Subject: Re: LPD/LPR problem Date: 1997/02/07 Message-ID: #1/1 X-Deja-AN: 215194022 sender: sterne@oxford.llnl.gov references: <5co81g$2ai$1@aphex.direct.ca> <32F933C2.41C6@resptk.bhp.com.au> organization: Lawrence Livermore National Laboratory newsgroups: comp.unix.osf.osf1 >>>>> "Joe" == Joe Spanicek writes: Joe> Simon H. P. Fung wrote: Simon> Could someone show me how to setup my Digital UNIX 4.0 box to Simon> print to a HP printer which is connected to the LAN via a HP Simon> JetDirect print server? Simon> Joe> This is my printcap entry: I set it up using the GUI Printer Setup Joe> in DU4.0 Joe> # HP1600CM Color Postscript DeskJet printer Joe> lp1|1|color:\ Joe> :lf=/usr/adm/lp1err:\ Joe> :lp=:\ Joe> :mx#0:\ Joe> :rm=qmpcolor:\ Joe> :rp=RAW:\ Joe> :sd=/usr/spool/lpd1:\ Joe> :sh: Joe> You may want to try 'rp=RAW' - the printer should be able to Joe> distinguish whether it is plain text or postscript. It would be nice if the printer distinguished between plain text and postscript; unfortunately, it doesn't. If you print a text file to the raw queue on the printer, it ignores carriage returns, and you get a nice staircase effect with the lines marching off to the right of your page. One way around this problem is to set up two queues, one for text, with rp=text in the printcap entry, and the other for everything else (postscript, HPGL, PCL) with rp=raw. The user then has to remember to point text at the text queue and everything else at the raw queue. Another way around it is to set up a filter on the host and turn the text into postscript before firing it at the printer. Then you only need one printcap entry for rp=raw. Don't try to use filtering in the printcap entry though, as it disregards filtering for remote queues. Instead, put a small wrapper around whatever commands you use to print (lpr, lp...), or just pass it through a filter before calling lpr: /usr/lbin/ln03rof< filename | lpr Good luck, Phil -- --------------------------------------------------------------------- Philip Sterne | sterne1@llnl.gov Lawrence Livermore National Laboratory | Phone (510) 422-2510 PO Box 808, L-407, Livermore, CA 94550 | Fax (510) 422-6594