I've now located and tried the subprocess_env() in conjunction w/
spawn_proc_prog().  I just do a foreach on the ENV hash and stuff 
the values
into subprocess_env().  That works (I have a test perl subprogram 
that just
dumps the ENV), but now I am not able to get the output of the program.
I
pasted in the read_data() func from the example and I have a single 
scalar
accepting the return value from spawn_proc_prog() per the example 
and that
is supposed to give me the output filehandle.

Any suggestions?


----- Original Message -----
From: "Erich Oliphant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 4:46 PM
Subject: Passing CGI environment to subprograms


> Hi,
> I have a mod_perl script that exec's (via backticks) another program.
> This program actually needs the CGI enviroment variables to perform
> correctly (it's a proprietary program, it was actually called by
> shell CGI initially, this approach cuts our exec's in half until
> we get an alternative for the subprogram).
>
> Based on some stuff in the list archive, I thought that Apache:
:SubProcess
> would handle this but it appears to just be a cleaner way to get
> the output of the called program as opposed to setting it's environment.

>
>
> Any help







Reply via email to