Subject: Re: correct/accepted way for lpd to transparently pass data to printer
To: None <netbsd-users@netbsd.org>
From: Mike Parson <mparson@bl.org>
List: netbsd-users
Date: 03/15/2001 10:50:30
In message <200103150225.LAA14912@ibr1.irm.nara.kindai.ac.jp>, you write:
> What's a good way to have lpd not filter the input data, but rather
> pass it transparently to the printer without adding, subtracting or
> altering the data?  Right now I'm using the following mini-script as
> "if" to do the job (and it works; yippee), but I'm not at all sure
> what pitfalls there might be in using cat like that.  TIA.
> 
> #!/bin/sh
> cat && exit 0
> exit 2

That works, but you can also just eliminate the :if: entry in your printcap
to not have an input filter at all.

-- 
Michael Parson
mparson@bl.org