Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!caen!uflorida!reef.cis.ufl.edu!ruck From: ruck@reef.cis.ufl.edu (John Ruckstuhl) Newsgroups: comp.unix.questions Subject: Re: writing an lpr filter (SunOS 4.1.1) Message-ID: <28839@uflorida.cis.ufl.EDU> Date: 31 May 91 01:43:54 GMT References: <28820@uflorida.cis.ufl.EDU> Sender: news@uflorida.cis.ufl.EDU Organization: EE Dept at UF Lines: 28 In article <28820@uflorida.cis.ufl.EDU> I writes: >My first attempt at writing a simple lpr filter has failed, so I ask for >a correction to my point-of-view, or a pointer to a reference. > >I'd like to prefix and postfix each printjob with an escape sequence, so >I modified the printcap to include > :if=/usr/local/lib/paintjet/if:of=/usr/local/lib/paintjet/of: As J Greely and jeffe@eniac.seas.upenn.edu (george) have kindly informed me: The solution is to define the prefix and postfix in the "if", and forget about the "of". "of" is not what I assumed it was. #! /usr/bin/sh /usr/5bin/echo '\033E\033&/6A\033%1BIN;WU0;PW0.01;\c' cat /usr/5bin/echo 'PG;\c' Thank you to J & george, and to others whose replies and followups are already on the way. Best regards, ruck -- John R Ruckstuhl, Jr ruck@alpha.ee.ufl.edu Dept of Electrical Engineering ruck@cis.ufl.edu, uflorida!ruck University of Florida ruck%sphere@cis.ufl.edu, sphere!ruck