From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 21:37:30 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 778DA16A481 for ; Fri, 22 Jul 2005 21:37:30 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24D9043F58 for ; Fri, 22 Jul 2005 21:30:19 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.3/8.13.1) with ESMTP id j6MLU8xF035106; Fri, 22 Jul 2005 15:30:08 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.3/8.13.1/Submit) with ESMTP id j6MLU8NE035103; Fri, 22 Jul 2005 15:30:08 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 22 Jul 2005 15:30:08 -0600 (MDT) From: Warren Block To: service@fixer.com In-Reply-To: <006c01c58ef9$33182b30$bec03040@yourykcpkzegys> Message-ID: <20050722151445.F35068@wonkity.com> References: <000801c58e83$72d8adb0$bec03040@yourykcpkzegys> <20050722093916.Q29847@wonkity.com> <006c01c58ef9$33182b30$bec03040@yourykcpkzegys> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (wonkity.com [127.0.0.1]); Fri, 22 Jul 2005 15:30:08 -0600 (MDT) Cc: questions@freebsd.org Subject: Re: Printer won't work 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: Fri, 22 Jul 2005 21:37:30 -0000 [Please keep questions@freebsd.org CCed in case there is useful information for others in this thread. Thanks.] On Fri, 22 Jul 2005, service@fixer.com wrote: > Thanks, I put 'lpd_enable="YES" in my rc.conf file and I now have a printer > deamon. I checked with your 'ps aux | grep lpd" and yes its there. > lptest> /dev/lpt0 still works the same. Sorry, can't recall what that was. > When I run 'lpr somefile', it will > do absolutely nothing sometimes. Othertimes it load a page and eject > immedialtely without trying to print anything. If your printer can print plain text, you still might only see the first line--the rest can "stairstep" off the page because lptest only sends linefeeds, not CRLF, between lines. lptest sends 200 lines of text with linefeeds, enough to force a normal printer to eject at least a couple of pages. While testing a new printer, though, it's easy to lose track of what may be left in the printer buffer. Once the printer realizes that text will not be on the visible part of the page, it may not do anything until it has received enough linefeeds or a formfeed to eject the page. You can send a formfeed directly: printf "\f" | lpr Printers that can't handle plain text (euphemistically known as "host-based" or "winprinters") have to get preformatted data through a driver. The driver is usually specified as an input filter (if=) in the printcap. Check /var/log/lpd-errs for error messages from the driver. -Warren Block * Rapid City, South Dakota USA