From owner-freebsd-questions Tue Mar 3 12:20:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24541 for freebsd-questions-outgoing; Tue, 3 Mar 1998 12:20:43 -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 MAA24504 for ; Tue, 3 Mar 1998 12:20:36 -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 MAA05712 for ; Tue, 3 Mar 1998 12:12:45 -0800 (PST) Message-ID: <34FC6586.4E5F4073@clicknet.com> Date: Tue, 03 Mar 1998 20:18:14 +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: Problem with lpr/printing. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message