From: sterne@dublin.llnl.gov (Philip Sterne)
To: Edvard Gooijenga <gooije@cft.philips.nl>
Subject: Re: HP4M_PS via jetdirect help!!
Date: 1996/01/17 [thread overview]
Message-ID: <sjka2qd35j.fsf@dublin.llnl.gov> (raw)
In-Reply-To: 4dj4pr$7sg@phcoms4.seri.philips.nl
>>>>> "Edvard" == Edvard Gooijenga <gooije@cft.philips.nl> writes:
Edvard> Hello, I'm having trouble to connect a HP4M_PS printer via it's
Edvard> Jetdirect interface. I created a printcap entry and can send
Edvard> data to this printer. This data arrives but is garbled, where
Edvard> can I get a correct input/output filter for this printer.
The filter /usr/lbin/hplaserof will convert text input to PCL.
The filter /usr/lbin/ln03rof will convert text to postscript.
Either of these will do, however, you can't get them to work from the
printcap entry. The computer assumes that the filtering will be done
at the other end when you specify a remote machine in the printcap.
The JetDirect card sets up two queues on the printer, one for text
input, the other for "raw" input, which means PCL, postscript, or
HP-GL. If you fire text at the raw queue on the printer, you will
get a staircase-like effect, or maybe even only the first line of the
file. Is this what you mean by garbled?
If you are printing only text files, set up your printcap to include
the parameter "rp=text". If you need both text and postscript (or
PCL or HP-GL), you can either set up two printcap entries, one for
text with "rp=text", and one for the others, with "rp=raw".
Alternatively, you can have a single printcap entry "rp=raw" and
remember to run a filter by hand before sending the data on to the
printer (or you could put a wrapper around your print command), e.g.
/usr/lbin/hplaserof < filename | lpr -PHP4M
Edvard> Maybe anybody can send me his printcap entry......
Since I use a simple script that runs the filter to print text files,
I just use a single printcap entry for the printer:
lp1|1|HP4M:\
:lf=/usr/adm/lp1err:\
:lp=:\
:mx#0:\
:rm=machine.name.domain:\
:rp=raw:\
:sd=/usr/spool/lpd1:
Good luck,
Phil
--
---------------------------------------------------------------------
Philip Sterne | sterne@dublin.llnl.gov
Lawrence Livermore National Laboratory | Phone (510) 422-2510
Livermore, CA 94550 | Fax (510) 422-7300
next prev parent reply other threads:[~1996-01-17 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-17 5:00 HP4M_PS via jetdirect help!! Edvard Gooijenga
1996-01-17 5:00 ` Philip Sterne [this message]
1996-01-23 5:00 ` Anyone using jukeboxes with osf1? stettler
-- strict thread matches above, loose matches on Subject: below --
1996-01-22 5:00 HP4M_PS via jetdirect help!! Ralf Puchner
1996-01-23 5:00 ` Ray Bellis
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