Subject: Re: Addendum about printing.
To: Richard Rauch <rkr@olib.org>
From: Tom Rushworth <tbr@mannynkapy.net>
List: netbsd-help
Date: 07/21/2003 19:31:28
On Mon, Jul 21, 2003 at 09:16:03AM -0500, Richard Rauch wrote:
> On Mon, Jul 21, 2003 at 08:20:25AM -0500, Frederick Bruckman wrote:
> > On Mon, 21 Jul 2003, Richard Rauch wrote:
> >
[snip]
>
> Yucky hack, but the only thing that works. (And even so, it still spits
> out a blank page at the end of the job.)
Richard,
I don't know if the blank page problem is the same one I had, but I have an
HP laserjet PS printer too. I had to add a ctrl-D to the end of each
job to get rid of the blank page. I just wrote a dumb little C program and
added it as a filter:
lp|local HP 4050:\
:lp=/dev/lp:mx#0:sh:\
:sd=/var/spool/output/lpd:\
:if=/usr/local/bin/addCtrlD:\
:lf=/var/log/lpd-errs:
Source code for the addCtrlD program available on request, but it's brain
dead simple - copy from stdin to stdout until eof on stdin, then spit out
a 0x04.
--
Tom Rushworth