From owner-freebsd-questions Mon Nov 11 15:19:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA18839 for questions-outgoing; Mon, 11 Nov 1996 15:19:21 -0800 (PST) Received: from spoon.beta.com (root@[199.165.180.33]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA18823 for ; Mon, 11 Nov 1996 15:19:15 -0800 (PST) Received: from spoon.beta.com (mcgovern@localhost [127.0.0.1]) by spoon.beta.com (8.7.5/8.6.9) with ESMTP id SAA00818 for ; Mon, 11 Nov 1996 18:19:10 -0500 (EST) Message-Id: <199611112319.SAA00818@spoon.beta.com> To: questions@freebsd.org Subject: Printcaps... Date: Mon, 11 Nov 1996 18:19:09 -0500 From: "Brian J. McGovern" 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: 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 "$@"