Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 1999 17:07:09 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>, freebsd-current@FreeBSD.ORG
Subject:   Re: Any chances to solve bin/7973?
Message-ID:  <v0421010cb3e8b086949a@[128.113.24.47]>
In-Reply-To: <19990824084425.A15735@dcse.fee.vutbr.cz>
References:  <19990823223742.A6198@dcse.fee.vutbr.cz> <v04210105b3e76566c239@[128.113.24.47]> <19990824084425.A15735@dcse.fee.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <user> -h <fromhost>'.  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v0421010cb3e8b086949a>