On Mon, 27 Nov 2000, Aaron Johnson wrote:
> I am trying to get the MHonArc package to work in conjunction with an in
> house module.
> When MHonArc (http://www.mhonarc.org) is run and told to process a
> single file instead of a directoy full of files, it sends the output to
> STDOUT which inside of mod_perl in this case is the browser. I am using
> the process_input() function as outlined in the MHonArc mailing list
> archives.
>
> I need to save the output to a variable. It was suggested by Earl Hood
> (author of MHonArc) that I tie a string to a filehandle and then dup the
> filehandle to STDOUT. This sounds great, but I am unsure where to
> place the code that will allow for this or how this needs to be done
> with mod_perl. (I read perltie and perlopentut, but it didn't light any
> bulbs). I got some results, but none that produced the desired results.
> The closest was getting the output to be directed to the resulting HTML
> page, but not the variable.
How about tie()? Something that I've just added to the guide:
http://perl.apache.org/guide/porting.html#STDIN_STDOUT_and_STDERR_streams
> I saw a email from 97 in the mod_perl archives that discussed untie
> *STDOUT and then retying it back to Apache after the section of code was
> complete, but it showed STDOUT being linked to a file open, how could I
> assign that to a tied string then a filehandle as suggested by Earl
> Hood? Is anything like this bulit into mod_perl or another module at
> this time?
>
>
>http:[EMAIL PROTECTED]
>
> The process_input function is running under mod_perl.
> If any other information is needed please let me know.
>
> I have a horribly ugly hack working currently, but it prevents MHonArc
> from running in a normal manner (i.e. processing mailinglists)
>
> Aaron Johnson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]