From owner-freebsd-questions Wed Feb 4 14:19:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24454 for questions-outgoing; Wed, 4 Feb 1998 14:19:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pchb1f.gallaudet.edu (pchb1f.gallaudet.edu [134.231.8.200]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24142 for ; Wed, 4 Feb 1998 14:18:46 -0800 (PST) (envelope-from flatline@pchb1f.gallaudet.edu) Received: from localhost (flatline@localhost) by pchb1f.gallaudet.edu (8.8.7/8.8.7) with SMTP id RAA03017; Wed, 4 Feb 1998 17:15:39 -0500 (EST) (envelope-from flatline@pchb1f.gallaudet.edu) Date: Wed, 4 Feb 1998 17:15:39 -0500 (EST) From: Uncle Flatline To: Anthony Hill cc: questions@FreeBSD.ORG Subject: Re: standard print setup. In-Reply-To: Message-ID: Organization: The Sprawl MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" On Thu, 5 Feb 1998, Anthony Hill wrote: > I have having some probelms getting my basic print setup to work under > 2.2.1-Release. When I try to use lpr to print - I get a message like :- > > bash$ lptest 30 10 | lpr > lpr: connect: No such file or directory > jobs queued, but cannot start daemon. > bash$ Wow, I think I can answer this one! ;-) I was seeing the same error. Do you have more than one printer pointing to /var/spool/output/lpd (i.e. several printer defs with :sd=/var/spool/output/lpd:)? If yes: Don't. ;-) Make separate directories for each def. When I gave each of my printers a separate directory to live in, all was well (Originaly I had a separate directory for each physical device but not for each printer definition, and FreeBSD wasn't happy.) > ..and sure enough lpq shows the queued files. I can print by catting a > file to /dev/lpt0, so I know the printer is working ok. My printcap > looks like :- > > lp|hp|HP bubblejet 670C:\ > :sh:lp=/dev/lpt0:sd=/var/spool/output/lpd:\ > :lf=/usr/local/libexec/if-simple: > > > and if-simple looks like :- > > #!/bin/sh > # > # if-simple - Simple text input filter for lpd > # Installed in /usr/local/libexec/if-simple > # > # Simply copies stdin to stdout. Ignores all filter arguments. > > /bin/cat && printf "\f" && exit 0 > exit 2 > > and /var/spool/output/lpd looks like :- > > bash# ls /var/spool/output/lpd > .seq dfA008darkstar.blacksun.net.au > cfA008darkstar.blacksun.net.au > bash# > > .. so has anyone got an idea what the problem could be ? > > Thanks > > > Anthony Hill > > > > -------------------<80-column fixed-width text follows>------------------- -- Kevin Cole | E-mail: flatline@pchb1f.gallaudet.edu Gallaudet Research Institute | WWW: http://pchb1f.gallaudet.edu/ Hall Memorial Bldg S-419 | Voice: (202) 651-5135 Washington, D.C. 20002-3695 | FAX: (202) 651-5746