having difficulty getting ghostscript 6.0 to work as a print filter on
Solaris 8, printing to a networked LaserJet 5si. I can step through the
filtering process manually (convert text file to postscript with
postprint, then pipe that file through ghostscript to lp) and it works
fine. like so:
# /usr/lib/lp/postscript/postprint /etc/passwd > tmp.ps
# /usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=laserjet \
-sOutputFile=\|lp tmp.ps
# lpfilter -f all -l
(Filter "Temp")
Input types: simple,postscript
Output types: PCL
Printer types: any
Printers: any
Filter type: slow
Command: /usr/bin/cat
and it prints out perfectly...
but if i set up the following filters:
# lpfilter -f all -l
(Filter "PStoPCL")
Input types: postscript
Output types: PCL
Printer types: any
Printers: any
Filter type: slow
Command: /usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=laserjet \
-sOutputFile=- -
(Filter "postprint")
Input types: simple
Output types: postscript
Printer types: any
Printers: any
Filter type: slow
Command: /usr/lib/lp/postscript/postprint
Options: PAGES * = -o*
Options: LENGTH * = -l*
Options: MODES group = -n2
Options: MODES group\=\([2-9]\) = -n\1
Options: MODES portrait = -pp
Options: MODES landscape = -pl
Options: MODES x\=\(\-*[\.0-9]*\) = -x\1
Options: MODES y\=\(\-*[\.0-9]*\) = -y\1
Options: MODES magnify\=\([\.0-9]*\) = -m\1
Options: MODES catv_filter = -I
and then try to print using the lp command (lp /etc/passwd), it errors
out, citing that an error ocurred during filtering. here is the output
of lpstat -p -D -l, in case that helps...
# lpstat -p -D -l
printer isg5si is idle. enabled since Mon Jan 14 19:36:40 EST 2002. available.
Form mounted:
Content types: PCL
Printer types: hplaser
Description:
Connection: direct
Interface: /usr/lib/lp/model/netstandard
On fault: write to root once
After fault: continue
Users allowed:
(all)
Forms allowed:
(none)
Banner not required
Character sets:
(none)
Default pitch: 10 CPI 6 LPI
Default page size: 80 wide 60 long
Default port settings:
Options: protocol=tcp, dest=128.71.130.191:9100
any tips or suggestions as to why this does not work would be appreciated...
thanks.
-rob
--
robert sherman
css3, school of civil and environmental engineering
georgia institute of technology
atlanta, ga, usa