From owner-freebsd-questions Mon Jul 21 01:51:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA01462 for questions-outgoing; Mon, 21 Jul 1997 01:51:30 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA01453 for ; Mon, 21 Jul 1997 01:51:25 -0700 (PDT) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA05490; Mon, 21 Jul 1997 10:24:05 +0200 (MET DST) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.5/8.6.9) id KAA26398; Mon, 21 Jul 1997 10:26:47 +0200 (MEST) Message-ID: <19970721102646.40575@gil.physik.rwth-aachen.de> Date: Mon, 21 Jul 1997 10:26:46 +0200 From: Christoph Kukulies To: Lew Teck Kheng Cc: "'FreeBSD'" Subject: Re: Network Printer : Stair Case Effect References: <60B34F2F68E5D011AD7600609759FA23031B57@SHT-01-MSG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.75e In-Reply-To: <60B34F2F68E5D011AD7600609759FA23031B57@SHT-01-MSG>; from Lew Teck Kheng on Mon, Jul 21, 1997 at 03:34:03PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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=" 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