From owner-freebsd-questions Sun Nov 23 16:00:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA13872 for questions-outgoing; Sun, 23 Nov 1997 16:00:51 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from tok.qiv.com (Mn25Z7jtP+E+lO60vuvFI0DYKxFO8L3r@[204.214.141.211]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA13864 for ; Sun, 23 Nov 1997 16:00:43 -0800 (PST) (envelope-from jdn@qiv.com) Received: (from uucp@localhost) by tok.qiv.com (8.8.8/8.8.5) with UUCP id SAA07829; Sun, 23 Nov 1997 18:00:24 -0600 (CST) Received: from localhost (jdn@localhost) by acp.qiv.com (8.8.8/8.8.5) with SMTP id RAA01207; Sun, 23 Nov 1997 17:50:01 -0600 (CST) X-Authentication-Warning: acp.qiv.com: jdn owned process doing -bs Date: Sun, 23 Nov 1997 17:50:01 -0600 (CST) From: Jay Nelson To: Geoffrey Robinson cc: questions@freebsd.org Subject: Re: Can't get lpr working. In-Reply-To: <3478AEB9.DAF8C329@accessv.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Does the directory /var/spool/lpd/prn exist? What is the purpose of the if-simple filter? -- Jay On Sun, 23 Nov 1997, Geoffrey Robinson wrote: > Hi, I've just finished setting up lpr for the first time and I can't get > it to work. When I enter the test line > > lptest 20 5 | lpr -Pprn > > I get the error message > > lpr: connect: No such file or directory > jobs queued, but cannot start daemon. > > I know my printer is set up correctly because I can print things > manually by re-directing output to /dev/lpt0. > > I'm not sure if this error is caused by something that I entered wrong > in /etc/printcap or something not set up right in my kernel, I'm pretty > new to Unix right now. > > My setup files are as follows > > # > # /etc/printcap > # > prn|lp|EPSON LQ-570+ ESC/P2:\ > :sh:sd=/var/spool/lpd/prn:\ > :lp=/dev/lpt0:\ > :if=/usr/local/libexec/if-simple: > ^D > > > #!/bin/sh > # > #/usr/local/libexec/if-simple > # > /bin/cat && exit 0 > exit 2 > ^D > > if-simple is set as 555 > > I'm using a custom kernel but I tested it on the GENERIC kernel as well > so I don't think its something I messed up in there. Any Ideas? > > Thanks in advance for any help that you can give me. > > -- > Geoffrey Robinson > grobin@accessv.com > Oakville, Ontario, Canada. >