From owner-freebsd-questions@FreeBSD.ORG Thu Sep 30 05:10:50 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 646F316A4CF for ; Thu, 30 Sep 2004 05:10:50 +0000 (GMT) Received: from ms-smtp-03-eri0.socal.rr.com (ms-smtp-03-qfe0.socal.rr.com [66.75.162.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CFC043D46 for ; Thu, 30 Sep 2004 05:10:50 +0000 (GMT) (envelope-from gwschenk@socal.rr.com) Received: from [192.168.1.103] (cpe-66-74-147-103.socal.rr.com [66.74.147.103])i8U5AluY019093; Wed, 29 Sep 2004 22:10:48 -0700 (PDT) Message-ID: <415B9558.4030401@socal.rr.com> Date: Wed, 29 Sep 2004 22:10:48 -0700 From: Gary Schenk User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040903 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Smith References: <415B6D9C.90203@socal.rr.com> <20040930022810.GS1967@internode.com.au> In-Reply-To: <20040930022810.GS1967@internode.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: lpr error messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 05:10:50 -0000 Adam Smith wrote: > On Wed, Sep 29, 2004 at 07:21:16PM -0700, Gary Schenk said: > >>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. > > > LPR is a binary and so the output here is unexpected (as they look more > like script errors). > > >>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 > > >>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. > > > If you want to reinstall the lpr binary, you can either go through a make > installworld process or install the binary on it's own by going into > /usr/src/usr/sbin/lpr and doing a 'make install'. That will recompile and > reinstall lpr. > Yes, that fixed it. I did a stupid thing while root and hosed the lpr file. Thanks.