stylascii-atalk 562 B

1234567891011121314
  1. #!/bin/sh
  2. # This script assumes that lpd passes the username and hostname of
  3. # the user that owns the print job in arguments 5 and 7, respectively.
  4. # Substitute your favorite ascii-to-postscript filter here...
  5. # note: with gnu enscript, the '--pass-through' flag makes the filter
  6. # transparent to postscript files. Handy.
  7. /usr/local/bin/enscript -M Letterdj --pass-through --lineprinter -o - |\
  8. /usr/local/gnu/bin/gs -q -dNOPAUSE -sDEVICE=pbmraw -r360x360 \
  9. -sOutputFile=- - \
  10. |/usr/local/sbin/lpstyl -a 'PaperShredder:ColorStyleWriter2400AT' -u ${5}@${7}