From owner-freebsd-questions Mon Nov 11 23:38:18 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA29432 for questions-outgoing; Mon, 11 Nov 1996 23:38:18 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA29414 for ; Mon, 11 Nov 1996 23:38:08 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id IAA05657; Tue, 12 Nov 1996 08:39:04 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id IAA25111; Tue, 12 Nov 1996 08:48:45 +0100 From: Christoph Kukulies Message-Id: <199611120748.IAA25111@gilberto.physik.rwth-aachen.de> Subject: Re: Printcaps... In-Reply-To: <199611112319.SAA00818@spoon.beta.com> from "Brian J. McGovern" at "Nov 11, 96 06:19:09 pm" To: mcgovern@spoon.beta.com (Brian J. McGovern) Date: Tue, 12 Nov 1996 08:48:44 +0100 (MET) Cc: questions@FreeBSD.ORG Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Thanks for all the people that helped me getting PS via GS working with my > inkjet. One last problem. I have hosts.equiv set up to let a couple of hosts > use LPR printing to my Unix host. When I print text or postscript from the > local machine, it works fine. When I print from my Windows 3.1 workstation > (again, using LPR, and the printdrivers for the color bubblejet (Cannon BJC > 600), it gives the following error: You mean you have enabled the Windows printer driver for that printer on the Windows side and you are connecting to a lpr printer? I'm not aware what printing options you have on the Win 3.1 side but I would guess Windows is sending codes for the Cannon BJC to the lpr daemon which is getting puzzled. Try to use transparent printing on the Windows side, e.g. choose a (fake) Postscript printer. > > spoon lpd[pid]: lp no filter found in printcap for format character 'v' > > Then it says the job can't be printed, and poof, its gone from the queue. Any > answers? > > Thanks... > -Brian > > > My Printcap looks like: > > lp|Cannon Inkjet:\ > :sh:mx#0:\ > :sd=/var/spool/lpd/bjc600:\ > :lp=/dev/lpt0:\ > :lf=/var/log/bjc600.log:\ > :if=/usr/local/libexec/if-cannon:\ > :tf=/usr/local/libexec/tr-cannon:\ > :df=/usr/local/libexec/dvi-cannon: > > My filters look like: > > /usr/local/libexec/if-cannon: > > #! /bin/sh > # > # if-ljetplus: a filter to print plain files or postscript files > # > # > # We don't really need this > # > # This line resets the printer, and sets character size to: > # 12cpi/6.6lpi. > # printf "\033E\033&l2a0o7.27C\033(s0p12h3T" > set PATH=/bin:/sbin:/usr/local/bin:/usr/local/libexec:/usr/local/lib/ghostscript:/usr/bin:/usr/sbin > export PATH > read first_line > first_two_chars=`expr "$first_line" : '\(..\)'` > > if [ "$first_two_chars" = "%!" ]; then > /usr/local/bin/gs -I/usr/local/share/ghostscript/4.02 -r320 -dSAFER -dNOPAUSE -q -sDEVICE=bjc600 -sPAPERSIZE=letter -sOutputFile=- - \ > && exit 0 > else > (echo $first_line && cat && printf "\f") > && exit 0 > fi > > exit 2 > > > /usr/local/libexec/tr-cannon: > > #! /bin/sh > # > # tr-ljetplus: convert groff output to postscript, and print. > # > /usr/bin/grops | /usr/local/libexec/if-cannon "$@" > > > /usr/local/libexec/dvi-cannon: > #!/bin/sh > # > # dvi-ljetplus: convert dvi to postscript, and print it. > # > /usr/local/bin/dvips -f | /usr/local/libexec/if-cannon "$@" > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de