From owner-freebsd-questions@FreeBSD.ORG Sun Apr 1 01:29:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74AE816A401 for ; Sun, 1 Apr 2007 01:29:14 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1F9DC13C455 for ; Sun, 1 Apr 2007 01:29:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.8/8.13.8) with ESMTP id l311TDWC026824; Sat, 31 Mar 2007 19:29:13 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.8/8.13.8/Submit) with ESMTP id l311TD3T026821; Sat, 31 Mar 2007 19:29:13 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 31 Mar 2007 19:29:13 -0600 (MDT) From: Warren Block To: =?ISO-8859-2?Q?Ivan_Zenzerovi=E6?= In-Reply-To: <640eadd40703311651y7d2b77bax173f6c10e5d7056f@mail.gmail.com> Message-ID: <20070331191537.D26747@wonkity.com> References: <640eadd40703311522y43375f75v430714edba0df51b@mail.gmail.com> <20070331165257.X25626@wonkity.com> <640eadd40703311611i286c517x3de33bd38290bcd6@mail.gmail.com> <640eadd40703311651y7d2b77bax173f6c10e5d7056f@mail.gmail.com> MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; BOUNDARY="===============1198725881==" Content-ID: <20070331191537.M26747@wonkity.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Sat, 31 Mar 2007 19:29:13 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Printer issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Apr 2007 01:29:14 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --===============1198725881== Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-13; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <20070331191537.Y26747@wonkity.com> Content-Disposition: INLINE On Sun, 1 Apr 2007, Ivan Zenzerovi=E6 wrote: >> zenzo|line|HP6L|lp|Hewlett z Packard Laser Jet6L:\ >> :sh:sd=3D/var/spool/zenzo:\ >> :lp=3D/dev/lpt0:\ >> :if=3D/usr/local/libexec/if-simple:\ >> # :if=3D/usr/local/libexec/hpif: > still the same, I put the device ljet5, because there is no ljet6. I just > don't get it, why is doing that! Please edit your posts to remove unneeded text, and post your reply=20 after the section you're replying to. This makes it easier to read and=20 respond. First, you can't use comments inside a printcap entry. Those=20 backslashes at the end of the line are line continuation characters; the=20 whole thing is really just one long line. Second, the default printer is usually called "lp". Unless you have=20 that, you'll have to tell lpr the printer name with -P each time you use=20 it. Given that, here's an edit of your printcap: lp:\ =09:lp=3D/dev/lpt0:\ =09:sh:\ =09:sd=3D/var/spool/zenzo:\ =09:if=3D/usr/local/libexec/if-simple: This requires that /usr/local/libexec/if-simple is in place and=20 executable, too. Now you should be able to print with lpr. However, your printer still=20 doesn't know that linefeed also means carriage return. So we'll include=20 carriage returns with a test print: lptest 66 79 | perl -ne 's/\n/\r\n/; print' | lpr This should print one page. If it works, you're almost there. -Warren Block * Rapid City, South Dakota USA --===============1198725881==--