From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b7320ca935694eed X-Google-Attributes: gidfee84,public From: Mark Sornson Subject: Re: Printing compressed on a Okidata connected to HP Jet Direct Date: 1998/12/18 Message-ID: <367A245C.6CD349B8@zk3.dec.com>#1/1 X-Deja-AN: 423623992 Content-Transfer-Encoding: 7bit References: <74pa8n$uqd$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: digital equipment corp. Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 russelsl@answers.ke.dupont.com wrote: > > I previously posted without supplying enough information: > > I am attempting to print compressed on an Okidata Microline 591 using Epson LQ > emulation. The Okidata is connected to an HP JetDirect EX Plus 3 on port #1. > I am printing in Digital Unix 4.0D > > I apologize if what I am attempting is not clear, but I barely have enough > knowledge to qualify me as a junior administrator: I have a legacy > application that sends raw ascii text to the printer and I need to be able to > change the printer pica from 10cpi to 12cpi and also 17cpi (compressed). I > figure I could either create a script that will echo \033\17\c to set the > printer in 17cpi and then issue \033@\c to reset the printe back to it's > default state. Where I am lost is what option do I need to change in > lprsetup to get it to read a filter file, create a filter that will send the > control sequence to a remote printer and send the text output, and reset the > printer after the printjob is complete. > > I feel I should set it up with the option if=/usr/lbin/myfilter:\ and I would > assume I could either write a c program to printf what I need or have a script > file echo the sequence. I hope this give a better explanation of what I am > trying to get accomplished. Thanks for any advice you can give. > Have you already used lprseutp to create a queue for the filter? If so, what does the /etc/printcap entry look like? If you've already created the entry, you don't have to use lprsetup, but instead can just edit the /etc/printcap file by hand to change the printer entry. You are correct that the "if" option is the one you would most likely want to change. But (again assuming you already have the printer set up) you don't want to lose the behavior of the existing filter. So perhaps you could create a script for the input filter ("if") that calls your compressed-mode setup first, and then calls the filter currently in use. Then you might want to call your filter again (or another one by you) to reset the printer back to non-compressed mode. Also, make sure your filter has the correct protection and ownership set. Compare it to any of the filters that ship with the O/S in /usr/lbin. -mark.