From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c7fffb499e7038a X-Google-Attributes: gidfee84,public From: sterne@dublin.llnl.gov (Philip Sterne) Subject: Re: Ethernet HP Laserjet Postscript problem Date: 1996/06/25 Message-ID: #1/1 X-Deja-AN: 162144106 sender: sterne@dublin.llnl.gov references: <31C88258.65F5@spectratek.co.uk> to: Steve Russell organization: Lawrence Livermore National Laboratory newsgroups: comp.unix.osf.osf1 >>>>> "Steve" == Steve Russell 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