From owner-freebsd-questions Sun Feb 17 14:17:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ra.sigterm.com (sangui.lnk.telstra.net [139.130.16.74]) by hub.freebsd.org (Postfix) with SMTP id 6EED437B400 for ; Sun, 17 Feb 2002 14:17:09 -0800 (PST) Received: (qmail 40169 invoked from network); 17 Feb 2002 22:17:06 -0000 Received: from osiris.sigterm.com (203.47.187.211) by ra.sigterm.com with SMTP; 17 Feb 2002 22:17:06 -0000 Date: Mon, 18 Feb 2002 09:17:16 +1100 From: Stuart Tanner To: Graham Wheeler Cc: freebsd-questions@freebsd.org Subject: Re: lpd not reading printcap? Message-ID: <20020218091716.C929@osiris.sigterm.com> References: <5.1.0.14.0.20020217140408.02a208b0@situs2.netizen.co.za> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <5.1.0.14.0.20020217140408.02a208b0@situs2.netizen.co.za>; from gram@bradygirl.com on Mon, Feb 18, 2002 at 09:11:03 +1100 X-Mailer: Balsa 1.3.0 Lines: 51 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002.02.18 09:11 Graham Wheeler wrote: > Hi all > > I am having problems getting remote printing to work. I've done this > many times before successfully, and can't understand why I am now > having problems. > > I have a very simple /etc/printcap file, along the lines of: > > lprem:rm=printserv:sh:sf:lf=/var/log/lpd-errs > > When I start up lpd, I get two log messages: > > lpd: Cannot open /dev/lp: No such file or directory > > If I try to print to lprem, using "lp -d lprem", I get a message > saying the printer is not known. > > If I just use lp without a -d argument, the file gets queued, but lpd > again complains of being unable to open /dev/lp. > > If I make a link from /dev/lp to /dev/lpt0, then an lpc status tells > me that the printer may be offline. > > In short, it appears that the /etc/printcap file is being ignored by > lpd, and it is defaulting to /dev/lp. > > I'm running 4.5S, last cvsupped about 2 weeks ago. > > Any ideas, anyone? You are not telling lpd which printer to use at the other end. You have listed the remote machine but you don't have a rp entry. hpljiii|HP LaserJet III:\ :sh:\ :rm=ra:sd=/var/spool/lpd/ra:lf=/var/log/lpd-errs:\ :rp=hpljiii:\ :if=/usr/local/libexec/psif: > gram > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Stuart Tanner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message