Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > d28aa3e8cda971dba1970008aa666944 > files > 154

printer-filters-1.0-102mdk.ppc.rpm

#!/bin/sh

# This script assumes that lpd passes the username and hostname of
# the user that owns the print job in arguments 5 and 7, respectively.

# Substitute your favorite ascii-to-postscript filter here...
# note: with gnu enscript, the '--pass-through' flag makes the filter
# transparent to postscript files.  Handy.

/usr/local/bin/enscript -M Letterdj --pass-through --lineprinter -o - |\
/usr/local/gnu/bin/gs -q -dNOPAUSE -sDEVICE=pbmraw -r360x360 \
	-sOutputFile=- - \
|/usr/local/sbin/lpstyl -a 'PaperShredder:ColorStyleWriter2400AT' -u ${5}@${7}