LN03R scriptprinter problem solved
George Robbins
grr at cbmvax.UUCP
Mon Aug 14 14:42:37 AEST 1989
In article <2288 at jhunix.HCF.JHU.EDU> barrett at 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 at uunet.uu.net
Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
More information about the Comp.unix.ultrix
mailing list