Date: Mon, 11 Nov 1996 18:19:09 -0500 From: "Brian J. McGovern" <mcgovern@spoon.beta.com> To: questions@freebsd.org Subject: Printcaps... Message-ID: <199611112319.SAA00818@spoon.beta.com>
next in thread | raw e-mail | index | archive | help
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: <Date> 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 "$@"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611112319.SAA00818>