Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Ethernet HP Laserjet Postscript problem
@ 1996-06-19  4:00 Steve Russell
  1996-06-25  4:00 ` Philip Sterne
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Russell @ 1996-06-19  4:00 UTC (permalink / raw)



I have an HP laserJet 5M ethernet printer (with Jetdirect card). It is 
set up to print postscript files. When a postscript file is sent to it 
there is no problem. However when I send an ascii file I get a postscript 
error on the printer. My printcap entry is 
lp0|lp|0|laser:\
   :af=/usr/adm/lpacct:\
   :if=/usr/lbin/ln03rof:\
   :lf=/usr/adm/lperr:\
   :lp=:\
   :mx#0:\
   :of=/usr/lbin/ln03rof:\
   :pl#66:\
   :pw#80:\
   :rm=etaplaser:\
   :rp=laser:\
   :sd=/usr/spool/lpd:\
   :sh:\
   :sf:\
   :sc:
As I understand the "if:" line should wrap any ascii files in postscript 
format before sending them off to the printer. I can only assume that 
this is not happening. 
Does anyone have any ideas please .

Cheers,
Steve  
-- 
Stephen A. Russell
Spectra-Tek UK Ltd.
Malton, North Yorkshire
Y017 0QR, ENGLAND



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ethernet HP Laserjet Postscript problem
  1996-06-19  4:00 Ethernet HP Laserjet Postscript problem Steve Russell
@ 1996-06-25  4:00 ` Philip Sterne
  0 siblings, 0 replies; 2+ messages in thread
From: Philip Sterne @ 1996-06-25  4:00 UTC (permalink / raw)
  To: Steve Russell


>>>>> "Steve" == Steve Russell <stephen_russell@spectratek.co.uk> writes:

Steve>  I have an HP laserJet 5M ethernet printer (with Jetdirect
Steve>  card). It is set up to print postscript files. When a postscript
Steve>  file is sent to it there is no problem. However when I send an
Steve>  ascii file I get a postscript error on the printer. 
             
	[Printcap file snipped]

Steve>  As I understand the "if:" line should wrap any ascii files in
Steve>  postscript format before sending them off to the printer. I can
Steve>  only assume that this is not happening.  Does anyone have any
Steve>  ideas please .

  The filters are ignored if you print to a queue on a remote printer.
  It assumes that the remote printer will take care of any filtering you
  need.  

  Your options are to set up a second queue for text, using the line 
              
      :rp=text:

  in your printcap, or filtering the text file by hand before firing it
  at the printer:

     /usr/lbin/ln03rof < testfile | lpr -Plaser

  Neither solution is optimal. I would really like the printer to be
  able to switch by itself so that only one queue was necessary.

  Some people have suggested putting a wrapper around the lpr command to
  call ln03rof if the file is a regular text file.  This should work
  too. 

  Good luck,
		Phil


-- 
---------------------------------------------------------------------
Philip Sterne 				|    sterne@dublin.llnl.gov
Lawrence Livermore National Laboratory	|    Phone   (510) 422-2510
Livermore,  CA 94551			|    Fax     (510) 422-7300



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-25  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-19  4:00 Ethernet HP Laserjet Postscript problem Steve Russell
1996-06-25  4:00 ` Philip Sterne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox