Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: grr@cbmvax.UUCP (George Robbins)
Subject: Re: LN03R scriptprinter problem solved
Date: 14 Aug 89 04:42:37 GMT	[thread overview]
Message-ID: <7651@cbmvax.UUCP> (raw)
In-Reply-To: 2288@jhunix.HCF.JHU.EDU

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)


  reply	other threads:[~1989-08-14  4:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-08-13 18:16 LN03R scriptprinter problem solved Dan Barrett
1989-08-14  4:42 ` George Robbins [this message]
1989-08-14 13:25   ` Chet Ramey
1989-08-18 14:17 ` PDP 11/40 w/goodies John M Ashley
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