From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f6d34f4228746bbc,start X-Google-Attributes: gidfee84,public From: sterne@dublin.llnl.gov (Philip Sterne) Subject: Re: HP4M_PS via jetdirect help!! Date: 1996/01/17 Message-ID: #1/1 X-Deja-AN: 135545584 sender: sterne@dublin.llnl.gov references: <4dj4pr$7sg@phcoms4.seri.philips.nl> to: Edvard Gooijenga organization: Lawrence Livermore National Laboratory newsgroups: comp.unix.osf.osf1 >>>>> "Edvard" == Edvard Gooijenga writes: Edvard> Hello, I'm having trouble to connect a HP4M_PS printer via it's Edvard> Jetdirect interface. I created a printcap entry and can send Edvard> data to this printer. This data arrives but is garbled, where Edvard> can I get a correct input/output filter for this printer. The filter /usr/lbin/hplaserof will convert text input to PCL. The filter /usr/lbin/ln03rof will convert text to postscript. Either of these will do, however, you can't get them to work from the printcap entry. The computer assumes that the filtering will be done at the other end when you specify a remote machine in the printcap. The JetDirect card sets up two queues on the printer, one for text input, the other for "raw" input, which means PCL, postscript, or HP-GL. If you fire text at the raw queue on the printer, you will get a staircase-like effect, or maybe even only the first line of the file. Is this what you mean by garbled? If you are printing only text files, set up your printcap to include the parameter "rp=text". If you need both text and postscript (or PCL or HP-GL), you can either set up two printcap entries, one for text with "rp=text", and one for the others, with "rp=raw". Alternatively, you can have a single printcap entry "rp=raw" and remember to run a filter by hand before sending the data on to the printer (or you could put a wrapper around your print command), e.g. /usr/lbin/hplaserof < filename | lpr -PHP4M Edvard> Maybe anybody can send me his printcap entry...... Since I use a simple script that runs the filter to print text files, I just use a single printcap entry for the printer: lp1|1|HP4M:\ :lf=/usr/adm/lp1err:\ :lp=:\ :mx#0:\ :rm=machine.name.domain:\ :rp=raw:\ :sd=/usr/spool/lpd1: Good luck, Phil -- --------------------------------------------------------------------- Philip Sterne | sterne@dublin.llnl.gov Lawrence Livermore National Laboratory | Phone (510) 422-2510 Livermore, CA 94550 | Fax (510) 422-7300