From owner-freebsd-questions Sun Feb 17 15: 8:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.netizen.co.za (situs.netizen.co.za [209.61.189.116]) by hub.freebsd.org (Postfix) with ESMTP id B9C9E37B419 for ; Sun, 17 Feb 2002 15:08:48 -0800 (PST) Received: from localhost.netizen.co.za ([127.0.0.1] helo=localhost) by mail.netizen.co.za with smtp (Exim 3.34 #1) id 16caQG-000GVX-00; Sun, 17 Feb 2002 17:08:44 -0600 To: Stuart Tanner , Graham Wheeler , Subject: Re: lpd not reading printcap? From: Graham Wheeler Date: Sun, 17 Feb 2002 17:08:44 CST Reply-To: Graham Wheeler X-Priority: 3 (Normal) X-Originating-Ip: [4.34.190.174] X-Mailer: NOCC v0.9.5 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Message-Id: 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 Stuart Tanner wrote : > 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: You're right; I had forgotten that this is needed even if the remote printer is named lp. It's been a while. I used the example for a remote printer given in the default /etc/printcap; it is also missing the rp field so its a poor example. Thanks Gram To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message