Xref: utzoo comp.unix.ultrix:1485 comp.sys.dec:1655
Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!cbmvax!grr
From: grr@cbmvax.UUCP (George Robbins)
Newsgroups: comp.unix.ultrix,comp.sys.dec
Subject: Re: LN03R scriptprinter problem solved
Keywords: Thanks!
Message-ID: <7651@cbmvax.UUCP>
Date: 14 Aug 89 04:42:37 GMT
References: <2288@jhunix.HCF.JHU.EDU>
Reply-To: grr@cbmvax.UUCP (George Robbins)
Organization: Commodore Technology, West Chester, PA
Lines: 23

In article <2288@jhunix.HCF.JHU.EDU> barrett@jhunix.HCF.JHU.EDU (Dan Barrett) writes:
...
> The trick was to define an "accounting filter" with the "if" parameter.
> /usr/local/filters/psfilter is nothing but this:
...
> Strangely enough, /bin/cat would not work as the accounting filter,
> as George suggested it would.  Looking at the source code to /bin/cat
> on our ULTRIX machine, I'm not surprised.  What a WEIRD piece of code!

Hmmm.  I was sure I'd tried cat and it worked, however on reflection it
occurs to me that lpd passes a number of strange arguments to the filter,
which cat(1) no doubt pukes on.  At some point I was using a little
program much like yours, but it also did lf->cr/lf and a moderate amount
of form-feed eating.

Maybe unix needs a /bin/tcat (trivial cat) than only copies stdin to stdout
no matter what you tell it to do?  8-)


-- 
George Robbins - now working for,	uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing	arpa: cbmvax!grr@uunet.uu.net
Commodore, Engineering Department	fone: 215-431-9255 (only by moonlite)