From owner-freebsd-current Tue Aug 24 14: 6:49 1999 Delivered-To: freebsd-current@freebsd.org Received: from mail1.its.rpi.edu (mail1.its.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id 9E4691516C for ; Tue, 24 Aug 1999 14:06:46 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail1.its.rpi.edu (8.9.3/8.9.3) with ESMTP id RAA43044; Tue, 24 Aug 1999 17:06:43 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <19990824084425.A15735@dcse.fee.vutbr.cz> References: <19990823223742.A6198@dcse.fee.vutbr.cz> <19990824084425.A15735@dcse.fee.vutbr.cz> Date: Tue, 24 Aug 1999 17:07:09 -0400 To: Cejka Rudolf , freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Any chances to solve bin/7973? Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 8:44 AM +0200 8/24/99, Cejka Rudolf wrote: >Garance A Drosihn wrote (1999/08/23): > > > Why would the filter be reading the control file? It is just a > > filter, supposedly reading from stdin and writing to stdout... > >Yes and not. > >You can look into apsfilter for example. It gets from control file >JOB, USER and HOST items in case of ASCII input printing. This >information is used for "better" printing - ASCII input is converted >into PostScript and some additional headers are added: "Printed by USER >from HOST', "JOB name", date of printing and others. Why we should >lose this feature? (But I don't know, if there is any other and better >way how to fix this problem.) My own preference is to get lpd to set environment variables for this sort of thing. That way the values could be effected by other inputs (printcap entries, etc). I don't have any deep-seated objection to your change (and my opinion doesn't really count for much even if I did... :-), but my general preference is that nothing but the lpr/lpd programs should have any idea of the format (or even existence) of the control file. In the specific case of USER and HOST, aren't those already passed as parameters to the filter? We have a somewhat customized print empire here at RPI, but I believe it's true that the distributed lpd starts up a print-filter with '-n -h '. At one point we added another parameter to this list, only to find out that it broke several of the filter scripts we use. Thus, I went with environment variables. :-) --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message