Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 1997 10:26:46 +0200
From:      Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
To:        Lew Teck Kheng <tklew@binariang.maxisnet.com.my>
Cc:        "'FreeBSD'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Network Printer : Stair Case Effect
Message-ID:  <19970721102646.40575@gil.physik.rwth-aachen.de>
In-Reply-To: <60B34F2F68E5D011AD7600609759FA23031B57@SHT-01-MSG>; from Lew Teck Kheng <tklew@binariang.maxisnet.com.my> on Mon, Jul 21, 1997 at 03:34:03PM %2B0800
References:  <60B34F2F68E5D011AD7600609759FA23031B57@SHT-01-MSG>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 21, 1997 at 03:34:03PM +0800, Lew Teck Kheng wrote:
> Hello all,
> 
> I just installed FreeBSD 2.2.1 and I have little problem with printing.I
> tried to print a plain asii text file to a network printer (HP LaserJet
> 4m Plus with JetDirect card) and it print out have the "stair case
> effect".I had read through the handbook and it had to do with the CF and
> LF stuffs.
> 
> I also read through the /etc/printcap and there is one comment which I
> don't quite understand and how to do it.
> 
> In the /etc/printcap :
> 
> ..
> .
> .(after some line)
> 
> # Sample remote printer. The physical printer is on "lphost".
> # NB :you cannot perform any kind of local filtering directly.If you
> need local filters (e.g. LF -> CR-LF conversion for HP printers),
> # create a filter script that recursively calls lpd with another -P 
> # argument after filtering.
> 
> How do I make a recursive calls lpd ? I don't think I can use the
> ":if=<filters files>" in the /etc/printcap.?

add the line 

   :if=/usr/local/bin/lpf:

to your /etc/printcap entry.

and /usr/local/bin/lpf being a shell script like (in the simplest case):

#!/bin/sh
exec sed 's/$/^M/'

note that ^M is a literal control-M (carriage return) produced in vi
by typing ^V (control-v) in front of it. During debugging you can
consult /var/log/lpd-errs. Don't forget to make the script permissions
to 0755.


> 
> I can see the printer and I had successfully print a HTML file.Just the
> "stair-case effect" on ASCII file that cause a havoc.
> 
> Anybody can help
> 
> Thanks
> 
> betterman 

-- 
--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970721102646.40575>