> From [EMAIL PROTECTED] Tue Oct 10 08:14:51 2000
> Date: Tue, 10 Oct 2000 08:53:29 -0400 (EDT)
> From: Brian E Gallew <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: setting environment for accounting script
>
> --pgp-sign-Multipart_Tue_Oct_10_08:53:29_2000-1
> Content-Type: text/plain; charset=US-ASCII
>
> Then <[EMAIL PROTECTED]> spoke up and said:
> > Python needs some Environment-Variables to work correct.
> > (LD_LIBRARY_PATH and PYTHONPATH). I was able to set LD_LIBRARY_PATH
> > to what I wanted modifying /etc/lpd.conf and therein filter_ld_path
> > correctly. But it seems as if there is no possibility to set a
> > completely new environment-variable here. I used to fix similar
> > problems with the apache server modifying
>
> In Patrick's reply, he gives some good advice. On the other hand, why
> don't you just set LD_LIBRARY_PATH and PYTHONPATH in the rc file that
> starts LPRng? Then all exec-ed programs will inherit these settings.
> This seems to be the most obvious place to do it.
Nope. Sorry. LPRng purges the environment before passing
ANYTHING to a subserver. This is due to my extreme paranoia
about letting ANYTHING pass to a process that will possibly run
as root.
In hindsight, I should have also make '%' a forbidden metacharacter.
Patrick
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------