From owner-freebsd-questions Wed Mar 4 14:13:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05459 for freebsd-questions-outgoing; Wed, 4 Mar 1998 14:13:36 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dns.pinpt.com (dns.pinpt.com [205.179.195.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA05441 for ; Wed, 4 Mar 1998 14:13:30 -0800 (PST) (envelope-from schluntz@clicknet.com) Received: from clicknet.com (gatemaster.pinpt.com [205.179.195.65]) by dns.pinpt.com (8.8.7/8.8.7) with ESMTP id OAA16490 for ; Wed, 4 Mar 1998 14:05:41 -0800 (PST) Message-ID: <34FDD186.A612D05E@clicknet.com> Date: Wed, 04 Mar 1998 22:11:18 +0000 From: "Sean J. Schluntz" Organization: PinPoint Software Corporation X-Mailer: Mozilla 4.04 [en] (X11; U; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Re: Problem with lpr/printing. References: <34FC6586.4E5F4073@clicknet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ahem, you get than error when you have not loaded the lpd daemon. Sorry folks :( -Sean Sean J. Schluntz wrote: > > I've followed the suggestions for setting up a printer in the FreeBSD > Handbook on the web site but when I try to print I get the following > error: > > lpr: connect: No such file for directory > Jobs queued, but cannot start daemon > > This happens with Text and graphic printouts. Below is my printcap and > the shell script. There is nothing in the errors log. > > #Printcap > hplazer|hp5p|PS|lp|HP LazerJet 5p:\ > :sh:sd=/var/spool/lpd/hp5p:\ > :lf=/var/log/lpd-errs:\ > :lp=/dev/lpt0:\ > :if=/usr/local/libexec/hp5p: > > #!/bin/sh > # > # hp5p - Print Ghostscript-simulated PostScript on a HP 5p > # Installed in /usr/local/libexec/hp5p > > # > # Treat LF as CR+LF: > # > printf "\033&k2G" || exit 2 > > # > # Read first two characters of the file > # > read first_line > first_two_chars=`expr "$first_line" : '\(..\)'` > > if [ "$first_two_chars" = "%!" ]; then > # > # It is PostScript; use Ghostscript to scan-convert and print it > # > /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=lj5grey > -sOutputFile=- - \ > && exit 0 > > else > # > # Plain text or HP/PCL, so just print it directly; print a form > # at the end to eject the last page. > # > echo $first_line && cat && printf "\f" && exit 0 > fi > > exit 2 -- ---------------------------------------------------------------------- Sean J. Schluntz schluntz@clicknet.com Systems Engineer (408) 997-6900 x7222 PinPoint Software Corporation http://www.clicknet.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message