From owner-freebsd-questions Sun Feb 17 22: 5:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id C066337B404 for ; Sun, 17 Feb 2002 22:05:51 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020218060546.TFGR1214.rwcrmhc54.attbi.com@blossom.cjclark.org>; Mon, 18 Feb 2002 06:05:46 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1I65ii33651; Sun, 17 Feb 2002 22:05:44 -0800 (PST) (envelope-from cjc) Date: Sun, 17 Feb 2002 22:05:43 -0800 From: "Crist J. Clark" To: Graham Wheeler Cc: Stuart Tanner , freebsd-questions@FreeBSD.ORG Subject: Re: lpd not reading printcap? Message-ID: <20020217220543.S48401@blossom.cjclark.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from gram@bradygirl.com on Sun, Feb 17, 2002 at 05:08:44PM -0600 X-URL: http://people.freebsd.org/~cjc/ 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 Sun, Feb 17, 2002 at 05:08:44PM -0600, Graham Wheeler wrote: > 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. It's not needed when the remote is 'lp.' This works fine for me at the client, lp|hp|hpt45:\ :sh:\ :rm=blossom:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: Where, lp|local line printer:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: This is the printcap(5) on the server. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message