From owner-freebsd-questions@FreeBSD.ORG Thu Sep 30 02:43:18 2004 Return-Path: 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 E12BB16A4CF for ; Thu, 30 Sep 2004 02:43:18 +0000 (GMT) Received: from o2.hostbaby.com (o2.hostbaby.com [208.187.29.121]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A51443D1D for ; Thu, 30 Sep 2004 02:43:18 +0000 (GMT) (envelope-from ceo@l-i-e.com) Received: (qmail 22809 invoked by uid 1001); 30 Sep 2004 02:43:23 -0000 Received: from 67.167.52.21 (SquirrelMail authenticated user ceo@l-i-e.com); by www.l-i-e.com with HTTP; Wed, 29 Sep 2004 19:43:23 -0700 (PDT) Message-ID: <1297.67.167.52.21.1096512203.squirrel@www.l-i-e.com> In-Reply-To: <415B6D9C.90203@socal.rr.com> References: <415B6D9C.90203@socal.rr.com> Date: Wed, 29 Sep 2004 19:43:23 -0700 (PDT) From: "Richard Lynch" To: "Gary Schenk" User-Agent: Hostbaby Webmail X-Mailer: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: lpr error messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ceo@l-i-e.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 02:43:19 -0000 Gary Schenk wrote: > I cannot print from either X or the command line. It was working > fine until a few hours ago. Any suggestions on where to start > on this would be much appreciated. > > Here is an example: > > bash-2.05b$ lpr test.txt > /usr/bin/lpr: line 12: */5: No such file or directory > /usr/bin/lpr: line 15: 0: command not found > /usr/bin/lpr: line 18: 1: command not found > /usr/bin/lpr: line 19: 15: command not found > /usr/bin/lpr: line 20: 30: command not found > /usr/bin/lpr: line 25: 1,31: command not found > /usr/bin/lpr: line 28: 1: command not found > > lptest > /dev/lpt0 produces output to the printer. > > bash-2.05b$ grep lpd_enable /etc/rc.conf > lpd_enable="YES" > > I'm thinking that /usr/bin/lpr must be corrupted. I'm not > sure how to go about testing that theory, or what to do > if that is the case. I've searched the list archives and > googled to no avail. The way I read this, lpr is expecting to get a PostScript file, and you are feeding it a TEST file. I'm even willing to bet that on line 12 of your text file, there is a */5, which lpr is valiantly attempting to interpret as a PostScript command. Similarly, the other lines mentioned in the error output above indicate that all the other lines in your text file start with integers such as 0, 1, 15, etc. So all you really need to do now is find some way to convert your TEXT file to a PostScript file. Or convince lpr that it should accept text files, and somehow convert them internally to PostScript. -- Like Music? http://l-i-e.com/artists.htm