[3511] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Best way to connect to JetDirect printer

daemon@ATHENA.MIT.EDU (Anthony Martin)
Fri Nov 8 21:07:46 1996

Date: Fri, 8 Nov 1996 18:05:17 -0800 (PST)
From: Anthony Martin <amartin@engr.csulb.edu>
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.91.961108195556.16644A-100000@nycc.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Fri, 8 Nov 1996, Sunando Sen wrote:
> 
> HP Jetdirect has two lpd queues, "raw", which does not do LF->CR-LF 
> translation, and "text", which does.  Just create two corresponding 
> queues in you printcap with rp=text and rp=raw.
> 
> Another possibility is to create two printcap entries, called, say "hp5si"
> and "remote".  The "remote" entry points to the "raw" queue (rp=raw) on
> the HP printer.  The "hp5si" is a local queue and it uses a filter script
> that checks the file to be printed and pipes the file to nenscript if it
> is a text file, and leaves it alone if it is a postscript file.  At the
> final step it lprs the resulting PS file to the "remote" queue.
> 
> This is more or less what I am doing.  If anyone knows of a simpler 
> solution, I would like to hear of it.

There is no need to be calling lpr twice.  This can all be done with just
one filter and one printcap entry to the raw queue.  In fact, the Red Hat
filter, as dumb as it is, does just as the above mentioned script does,
with only 1 entry.  For more advance, yet simple filtering, I highly
recommend the magicfilter program.

Tony.



--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post