[comp.unix.questions] Output filter for Berkeley print spooler

bossert@entropy.ms.washington.edu (John Bossert) (11/17/87)

I'm writing a filter for lpr to allow ascii text to be sent to
a Postscript device.  I've successfully written the "if" filter
along with a pass-through "tf" filter allowing me to use the
devps troff-to-Postscript translation routines.

If I don't submit a job using "lpr -h", however, the output gets
improperly translated to Postscript and dropped on the floor.  The
problem seems to be that the header information:

hostname:username	Job: jobname	Date: date

gets sent to the printer outside the Postscript envelope.  What
I want to do, is to install a "of" filter in /etc/printcap.  I
understand that if an "if" filter is defined, the "of" filter
will only process the burst page.  Thus, I want to write an "of"
filter that will either toss or properly process the burst page
information.

To date, the attempts I've made at writing an "of" filter have
resulted in either no output at all or a hung spooler.

Thanks for any help.  Please send mail and I'll summarize to the
net.

---
John Bossert
Domain: bossert@Thalatta.COM	Path: uw-beaver!uw-entropy!thebes!bossert