Printcap OK, Postscript OK, together NOT OK - HELP!

Printcap OK, Postscript OK, together NOT OK - HELP!

Post by Bruno Mellon » Thu, 05 Oct 1995 04:00:00



I am trying to setup Postscript support for printing with lpr on a Laserjet 4L.
I have modified printcap and written a filter using ghostscript, but not
success.  Can somebody help?  Here is my setup:
printcap:       lpps|hpljet3:\
                        :lp=/dev/lp1:\
                        :sd=/usr/spool/lp1:\
                        :sh:\
                        :sf:\
                        :mx#0:\
                        :of=/usr/spool/lp1/hpps:
hpps:           gs -q -sDEVICE=ljet3 -sOutputFile=- -

When I use "cat file.ps | hpps | lpr" (with my text-only lp setup) it works ok,
but when I try to use "lpr -Plpps file.ps" I get "Ghostscript: Unrecoverable
error, exit code 1".  Any ideas?

bruno

 
 
 

Printcap OK, Postscript OK, together NOT OK - HELP!

Post by paul_ » Sat, 07 Oct 1995 04:00:00


Quote:>Printcap:   lpps|hpljet3:\

[SNIP - to keep my mail client happy]
..
                        :of=/usr/spool/lp1/hpps:       << use 'if' vice 'of'

Quote:>hpps:               gs -q -sDEVICE=ljet3 -sOutputFile=- -

My gs filter file is written in as an input filter (if)
and you might also need to add a -dNOPAUSE to the gs options

Best of luck
Paul

 
 
 

Printcap OK, Postscript OK, together NOT OK - HELP!

Post by Bruno Mellon » Sat, 07 Oct 1995 04:00:00




>->   I am trying to setup Postscript support for printing with lpr on a Laserjet 4L.
>->   I have modified printcap and written a filter using ghostscript, but not
>->   success.  Can somebody help?  Here is my setup:
>->   printcap:   lpps|hpljet3:\
>->                          :lp=/dev/lp1:\
>->                          :sd=/usr/spool/lp1:\
>->                          :sh:\
>->                          :sf:\
>->                          :mx#0:\
>->                          :of=/usr/spool/lp1/hpps:

>Ouch, why "of"? The printing HOWTO warns you to use "of".
>The correct way to call the filter will be "if".
>Maybe this solves your problem.

>Greeting jue
>--

Thanks, that was most of it.  Somebody posted a full printcap and filter
yesterday under the title "Laserjet4L" or something like it.

bruno

 
 
 

1. "nu bee:-)" ok ok ok

Please send Help,
      First time loading Linux 5.2 redhat    Not sure what to partition in
the custom mode.    I have 2 hard drives, pri1 is 8gig and pri2 is 2gig,sec1
is cdrom,sec2 is empty.     Primary drive 1(pri1) is loaded with Win98)~:, I
want to load Linux onto pri2 (primary drive 2) and dual boot.    What is the
best way to do this?     Any advice would be helpful.

              Thank You,

                         Matthew

2. how do you supress output to the error.log

3. Modem Problems: dial-out is ok/dial-in is not ok (Solaris 2.6)

4. Installing Solaris under IBM 25GB EIDE Drive

5. SMTP and IP Masquerade problem

6. Ping ok, netscape, gftp, lynx not ok

7. HOWTO Dynamic SLIP server setup? HELP!

8. AWE32 NOT DETECTED PNP OK PNP OK

9. Ethernet on 43P: ok on hub, not ok on switch

10. 2x IDE-HD ok+1x Mits.4x CDROM NOT ok!

11. 2.1.35 /PNP OK/SB OK but AWE32 not

12. serial console: LILO+getty ok, kernel not ok