From: Philip Sterne <sterne1@llnl.gov>
Subject: Re: LPD/LPR problem
Date: 1997/02/07 [thread overview]
Message-ID: <sjraisxipx.fsf@oxford.llnl.gov> (raw)
In-Reply-To: 32F933C2.41C6@resptk.bhp.com.au
>>>>> "Joe" == Joe Spanicek <joe@resptk.bhp.com.au> 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
prev parent reply other threads:[~1997-02-07 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-29 5:00 LPD/LPR problem Simon H. P. Fung
1997-02-06 5:00 ` Joe Spanicek
1997-02-07 5:00 ` Philip Sterne [this message]
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