Solution: Printing PostScript To HP Printer Via Jetadmin

Solution: Printing PostScript To HP Printer Via Jetadmin

Post by Eric L. Schot » Sat, 23 Jan 1999 04:00:00



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)    

 
 
 

1. Solaris 2.5.1 / HP JetAdmin D3.15 / HP JetDirect / Non-HP-Printer

Hi,

I run the above configuration and it works almost fine. I've created a
model script as descipt in HPs Electronic Support Center. But I've still
some troubles:

1. lp appends no form feed to my printing.
2. I've still PJL commands in my printings.

Has anybody experiences with similar problems?

Thx Mue

--
    __  __
   / /_/ /  Frank Mueller                   Nordwest-Zeitung Oldenburg
  / ____/   Telefon (0441) 9988-7270                 IV / Organisation

2. 10GB 8mm tape drive

3. Printing with PC NetLink 1.2 and HP Jetadmin managed printers

4. SCSI Device Driver

5. Problem with jetadmin printing in HP LaserJet Printer

6. Newbie looks for Vi editor to learn while at PC instead of UNIX

7. Compiling library on linuxppc...

8. Problem printing with HP Color LaserJet 5/5N/5M using Solaris 7 and HP JetAdmin

9. Printing on non postscript printer (+ via Samba).

10. Printing via Samba from Linux to Win95 non PostScript printer -problems

11. How to print from Solaris via Samba to Postscript printer on Win95?

12. Need a print filter for a HP 6MP postscript printer