Problem:
We have a non-PostScript HP printer attached to our network. We are
using Jetadmin to print to it from our Unix (Solaris) hosts. We
want to use GhostScript to print PostScript files.
Solution:
Edit the appropriate file in /etc/lp/interfaces/model.orig/:
*** /etc/lp/interfaces/model.orig/hp4-kpt-shop-orig Fri Jan 22 17:05:03 1999
--- /etc/lp/interfaces/model.orig/hp4-kpt-shop Fri Jan 22 17:39:48 1999
***************
*** 1561,1583 ****
;;
PS)
- if [ "$PSLEVEL" = "2" ]
- then
- Output_PS2_Options
- else
- Output_PS_Options
- fi
-
-
- if [ -z "$ascii" ] # a postscript file, dump it
- then
- cat "$file"
- else
- pslp # print ASCII file
- fi
- echo "\004\033%-12345X\c"
;;
PCL|HPGL2)
--- 1561,1569 ----
;;
PS)
! /every/software/bin/gs -q -sDEVICE=ljet4 -dNOPAUSE -dBATCH -sOutputFile=- "$file" 2> /dev/null
! echo "\033%-12345X\c"
;;
PCL|HPGL2)