Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2008 21:44:16 +0200
From:      Martin Schweizer <lists_freebsd@bluewin.ch>
To:        Konrad Heuer <kheuer2@gwdg.de>
Cc:        Martin Schweizer <office@pc-service.ch>, freebsd-questions@freebsd.org
Subject:   Re: Printing with lpd
Message-ID:  <20080804194416.GU67826@saturn.pcs.ms>
In-Reply-To: <20080804080205.W8566@gwdu60.gwdg.de>
References:  <20080804050617.GA37021@saturn.pcs.ms> <20080804080205.W8566@gwdu60.gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Konrad

Am Mon, Aug 04, 2008 at 08:06:18AM +0200 Konrad Heuer schrieb:

> >I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached 
> >HP LaserJet 2840N (connected via ethernet), my
> >/etc/printcap:
> >hplj2840|lp|Hewlett Packard LaserJet 2840C:\
> >       :sh:\
> >       :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\
> >       :lf=/var/log/lpd-errs:\
> >       :if=/usr/local/libexec/if-simple:
> >
> >and if-simple:
> >/usr/local/bin/recode latin1..ibmpc
> >
> >The prints are ok so fare (incl. the german umlauts). If I print text 
> >mails out from mutt the seems ok too. But if the
> >mails has some incorrect wrapped lines (> 72 caracters) the lines are not 
> >wrapped on the output.  What do I worng here?
> 
> I'd add something like
> 
>   /usr/bin/fold -s -w 80 | /usr/local/bin/recode latin1..ibmpc
> 
> to the filter script. I don't know whether there's an internal printer 
> setting for wrapping long lines.

Works like a charm! I did set the option -w to 78 so the printer did not print 
over the border. Thank you for the hint.

Regards,
-- 

Martin Schweizer
<office@pc-service.ch>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;




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