From owner-freebsd-questions@FreeBSD.ORG Thu Sep 30 02:38:22 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 F35FC16A4CE for ; Thu, 30 Sep 2004 02:38:21 +0000 (GMT) Received: from grog.secure-computing.net (grog.secure-computing.net [63.228.14.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ED7D43D54 for ; Thu, 30 Sep 2004 02:38:21 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [67.1.199.60] (0-1pool199-60.nas2.fargo1.nd.us.da.qwest.net [67.1.199.60]) (authenticated bits=0)i8U2cJLI004942; Wed, 29 Sep 2004 21:38:21 -0500 (CDT) (envelope-from ecrist@secure-computing.net) In-Reply-To: <415B6D9C.90203@socal.rr.com> References: <415B6D9C.90203@socal.rr.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric Crist Date: Wed, 29 Sep 2004 21:37:21 -0500 To: Gary Schenk X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on grog.secure-computing.net X-Virus-Status: Clean 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 02:38:22 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sep 29, 2004, at 9:21 PM, 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. > > Thanks in advance! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > Looks to me like someone replaced your lpr binary with a script. Possibly one written for Linux, where the executables aren't where they're supposed to be. Try to read the lpr file from a text editor. Make sure your user's path is still correct, too. HTH - ----- Eric F Crist Secure Computing Networks -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iEYEARECAAYFAkFbcWIACgkQRAAY9knOW+rLOwCfWiML/yb0TSlCugK3TD+vG7tm 4EYAn3xkighfWWuMhoP6r97+B0J4Pa77 =Av3f -----END PGP SIGNATURE-----