From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 19:28:50 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C7BB106567A for ; Mon, 4 Aug 2008 19:28:50 +0000 (UTC) (envelope-from martin@saturn.pcs.ms) Received: from mail1.hostpark.net (mail1.hostpark.net [212.243.197.31]) by mx1.freebsd.org (Postfix) with ESMTP id CE9E98FC1A for ; Mon, 4 Aug 2008 19:28:49 +0000 (UTC) (envelope-from martin@saturn.pcs.ms) Received: from localhost (localhost [127.0.0.1]) by mail1.hostpark.net (Postfix) with ESMTP id 2DD977BA81; Mon, 4 Aug 2008 21:28:48 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail1.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id qy29YlFOYkd2; Mon, 4 Aug 2008 21:28:48 +0200 (CEST) Received: from saturn.pcs.ms (41-58.62-81.cust.bluewin.ch [81.62.58.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail1.hostpark.net (Postfix) with ESMTP id D9E497BA17; Mon, 4 Aug 2008 21:28:47 +0200 (CEST) Received: from saturn.pcs.ms (localhost [127.0.0.1]) by saturn.pcs.ms (8.14.2/8.14.2) with ESMTP id m74JiGsY043418; Mon, 4 Aug 2008 21:44:17 +0200 (CEST) (envelope-from martin@saturn.pcs.ms) Received: (from martin@localhost) by saturn.pcs.ms (8.14.2/8.14.2/Submit) id m74JiG49043417; Mon, 4 Aug 2008 21:44:16 +0200 (CEST) (envelope-from martin) Date: Mon, 4 Aug 2008 21:44:16 +0200 From: Martin Schweizer To: Konrad Heuer Message-ID: <20080804194416.GU67826@saturn.pcs.ms> Mail-Followup-To: Konrad Heuer , Martin Schweizer , freebsd-questions@freebsd.org References: <20080804050617.GA37021@saturn.pcs.ms> <20080804080205.W8566@gwdu60.gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080804080205.W8566@gwdu60.gwdg.de> User-Agent: Mutt/1.4.2.3i Organization: PC-Service M. Schweizer GmbH, CH-8608 Bubikon, Switzerland X-PGP-Key: http://www.pc-service.ch/pgp/public_key.asc X-Fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239 Cc: Martin Schweizer , freebsd-questions@freebsd.org Subject: Re: Printing with lpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Schweizer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 19:28:50 -0000 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 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;