On 03/06/09 02:58 , Scott Gifford wrote:
> [ also posted on PerlMonks ]
> 
> I'm working on porting some code that's been running on mod_perl 1 for
> a very long time to mod_perl 2. Mostly things have gone smoothly, but
> I'm having trouble with environment variables. Sometimes my scripts go
> off and run other scripts, and expect to be able to set things like
> $ENV{PATH} for the child processes. However, for some reason under
> mod_perl 2, my environment variables aren't getting passed to child
> processes! Quite bizarre.

Have you tried using $r->subprocess_env ?

http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_

-- 
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to