[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: syswrite + Apache?
From: Anthony Gardner <cyclewood_ltd () yahoo ! co ! uk>
Date: 2006-12-15 10:49:27
Message-ID: 842180.99707.qm () web26001 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]
Doh!!
Think I've solved it. I used $r instead of Apache2::RequestIO and it works. Plus, I \
forgot to uniti STDOUT before tie(ing)
Now, just gotta try it on the ever reliable RHEL 1.99!!!!!
Perrin Harkins <perrin@elem.com> wrote: Alex Beamish wrote:
> I'm going
> to seriously consider looking through the mod_perl docs to see if
> there's a way to make sure a reader understands that if they want to do
> anything with STDOUT .. that they can't.
The tied STDOUT is actually pretty well-documented in my opinion:
http://perl.apache.org/docs/2.0/user/config/config.html#C_perl_script_
http://perl.apache.org/docs/1.0/guide/porting.html#STDIN__STDOUT_and_STDERR_streams
http://perl.apache.org/docs/2.0/api/Apache2/SubProcess.html#C_spawn_proc_prog_
http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html
There's more here about how this affects forking and system():
http://perl.apache.org/docs/1.0/guide/performance.html#Starting_a_Long_Running_External_Program
If there's a place in the docs where you think it would be relevant but
it isn't mentioned, you're more than welcome to send in a correction.
There are instructions for checking out the docs source on the website.
- Perrin
---------------------------------
Win tickets to the 2006 FIFA World Cup Germany with Yahoo! Messenger.
[Attachment #3 (text/html)]
Doh!!<br><br>Think I've solved it. I used $r instead of Apache2::RequestIO and it \
works. Plus, I forgot to uniti STDOUT before tie(ing)<br><br>Now, just gotta try it \
on the ever reliable RHEL 1.99!!!!!<br><br><br><br><b><i>Perrin Harkins \
<perrin@elem.com></i></b> wrote:<blockquote class="replbq" style="border-left: \
2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Alex Beamish \
wrote:<br>> I'm going <br>> to seriously consider looking through the mod_perl \
docs to see if <br>> there's a way to make sure a reader understands that if they \
want to do <br>> anything with STDOUT .. that they can't.<br><br>The tied STDOUT \
is actually pretty well-documented in my \
opinion:<br>http://perl.apache.org/docs/2.0/user/config/config.html#C_perl_script_<br> \
http://perl.apache.org/docs/1.0/guide/porting.html#STDIN__STDOUT_and_STDERR_streams<br \
>http://perl.apache.org/docs/2.0/api/Apache2/SubProcess.html#C_spawn_proc_prog_<br>http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html<br><br>There's \
> more here about how this affects forking and \
> system():<br>http://perl.apache.org/docs/1.0/guide/performance.html#Starting_a_Long_Running_External_Program<br><br>If \
> there's a place in the docs where you think it would be relevant but <br>it isn't \
> mentioned, you're more than welcome to send in a correction. <br>There are \
> instructions for checking out the docs source on the website.<br><br>- \
> Perrin<br></blockquote><br><p> 
<hr size=1><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a \
href="http://us.rd.yahoo.com/mail/uk/taglines/gmail/messenger/fgf/*http://advision.webevents.yahoo.com/fifaworldcup_uk/">Win \
tickets to the 2006 FIFA World Cup Germany with Yahoo! Messenger.</a>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic