Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: boyda@bf.rmit.edu.au (Boyd Adamson)
Subject: Re: printcap output filters
Date: 1996/01/12	[thread overview]
Message-ID: <4d4ivn$8m2@aggedor.rmit.EDU.AU> (raw)
In-Reply-To: sjd98r949p.fsf@dublin.llnl.gov

sterne@dublin.llnl.gov (Philip Sterne) writes:



>Chris>       I'd be very interested in talking to others who have done
>Chris>  this or otherwise gotten JetDirect cards working with OSF1 3.2c
>Chris>  lpd.  I have several hundred of these printers I need to talk to
>Chris>  from OSF.

>  Here is the printcap entry I'm using:
[snip]
>  This prints postscript and PCL. To get text as well, there are two
>  simple options, neither of which is entirely satisfactory:
>  1. Define another printcap entry to point to the text queue on the
>     JetDirect card:
[snip]
>     This gives you two separate queues with two printcap entries for
>     the printer, one for raw input (PCL, postscript, HPGL2), the other
>     for ASCII text.  You have to remember to use the right queue to
>     print the appropriate sort of file.
>  2. Locally run a filter to convert text to postscript or PCL as a
>     wrapper around your lpr command.  You can do this with a one-liner
>     along the lines of 
>       /usr/lbin/hplaserof < filename | lpr -Plp1
>  Phil

The other alternative that I have managed to get going (originally for
debugging purposes) was to create a print queue to which all jobs are
submitted. This print queue has an lp=/dev/null entry. Then, attach an
output filter on the queue that can decide whether the job is PS or text
(look for %!PS-Adobe in the first line) and optionally run the 
appropriate processing. The filter then submits the job to another queue
that has the appropriate rm and rp entries. It's not really elegant but
it means that you do effectively get an of on a remote printer.

Hope this helps, 

Boyd
--
--------------------------------------------------------------------------
Boyd Adamson - boyda@otto.bf.rmit.edu.au
You can't have everything. Where would you put it all?
--------------------------------------------------------------------------



  reply	other threads:[~1996-01-12  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-10  5:00 printcap output filters Chris Johnson
1996-01-10  5:00 ` Charles Richmond
1996-01-10  5:00 ` Philip Sterne
1996-01-12  5:00   ` Boyd Adamson [this message]
1996-01-22  5:00 ` Greg Merrell
  -- strict thread matches above, loose matches on Subject: below --
1996-01-14  5:00 Ralf Puchner
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