Subject: postcript on an epson printer
To: None <netbsd-help@netbsd.org>
From: Ian Grant <idgrant@optusnet.com.au>
List: netbsd-help
Date: 05/06/2003 14:31:39
hi

I've followed the old netbsd guide and when i try and print postcript on
my printer only the light flashes and nothing gets printed. here is my 
printcap file entry:
lp|local printer|epson color stylus 400:\
        :lp=/dev/lpa0:sd=/var/spool/lpd/lp:lf=/var/log/lpd-errs:\
        :sh:pl#66:pw#80

ps|Ghostscript driver:\
        :lp=/dev/lpa0:sd=/var/spool/lpd/ps:lf=/var/log/lpd-errs:\
        :mx#0:sh:if=/usr/local/libexec/lpfilter-ps


and here is my lpfilter-ps file:

#!/bin/sh
#Treat LF as CR+LF
printf "\0336k2G" || exit 2
#print the postscript file
/usr/pkg/bin/gs -dSAFER -dBATCH -dQUIET -dNOPAUSE -q -sDEVICE=epsonc \
-sOutputFile=- -sPAPERSIZE=a4 - && exit 0
exit 2