From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,406d5d6061e2ec0c X-Google-Attributes: gidfee84,public From: boyda@bf.rmit.edu.au (Boyd Adamson) Subject: Re: printcap output filters Date: 1996/01/12 Message-ID: <4d4ivn$8m2@aggedor.rmit.EDU.AU>#1/1 X-Deja-AN: 135035603 references: <4d0ge3$lkf@chaos.dac.neu.edu> organization: Royal Melbourne Institute of Technology, Melbourne, Australia. nntp-posting-user: boyda newsgroups: comp.unix.osf.osf1 sterne@dublin.llnl.gov (Philip Sterne) writes: >Chris> I'd be very interested in talking to others who have done >Chris> this or otherwise gotten JetDirect cards working with OSF1 3.2c >Chris> lpd. I have several hundred of these printers I need to talk to >Chris> from OSF. > Here is the printcap entry I'm using: [snip] > This prints postscript and PCL. To get text as well, there are two > simple options, neither of which is entirely satisfactory: > 1. Define another printcap entry to point to the text queue on the > JetDirect card: [snip] > This gives you two separate queues with two printcap entries for > the printer, one for raw input (PCL, postscript, HPGL2), the other > for ASCII text. You have to remember to use the right queue to > print the appropriate sort of file. > 2. Locally run a filter to convert text to postscript or PCL as a > wrapper around your lpr command. You can do this with a one-liner > along the lines of > /usr/lbin/hplaserof < filename | lpr -Plp1 > Phil The other alternative that I have managed to get going (originally for debugging purposes) was to create a print queue to which all jobs are submitted. This print queue has an lp=/dev/null entry. Then, attach an output filter on the queue that can decide whether the job is PS or text (look for %!PS-Adobe in the first line) and optionally run the appropriate processing. The filter then submits the job to another queue that has the appropriate rm and rp entries. It's not really elegant but it means that you do effectively get an of on a remote printer. Hope this helps, Boyd -- -------------------------------------------------------------------------- Boyd Adamson - boyda@otto.bf.rmit.edu.au You can't have everything. Where would you put it all? --------------------------------------------------------------------------