<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-183</id>
	<title>Nabble - mod_perl</title>
	<updated>2008-09-08T01:45:32Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/mod_perl-f183.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-f183.html" />
	<subtitle type="html">mod_perl is the marriage of Apache and Perl. mod_perl home is &lt;a href=&quot;http://perl.apache.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19368128</id>
	<title>Re: question on downloading CGI</title>
	<published>2008-09-08T01:45:32Z</published>
	<updated>2008-09-08T01:45:32Z</updated>
	<author>
		<name>Jen mlists</name>
	</author>
	<content type="html">Thank you all so much. I have resolved the problems.
&lt;br&gt;&lt;br&gt;On Sat, Sep 6, 2008 at 3:51 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19368128&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;adam.prime@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quoting &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19368128&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;practicalperl@...&lt;/a&gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I want to generate a data file which should be downloaded by clients.
&lt;br&gt;&amp;gt;&amp;gt; Rather than generate this file and put it in a web dir and tell
&lt;br&gt;&amp;gt;&amp;gt; clients to download it, is there any way to generate the content
&lt;br&gt;&amp;gt;&amp;gt; dynamicly and put it to cients? I mean I don't want to generate the
&lt;br&gt;&amp;gt;&amp;gt; temporary file. Thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This reads to me like you just want to cause the browser to prompt the user
&lt;br&gt;&amp;gt; to save the file to disk instead of render the content you are generating in
&lt;br&gt;&amp;gt; which case you should read about the Content-Disposition header:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ietf.org/rfc/rfc1806.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ietf.org/rfc/rfc1806.txt&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The quick summary of which is to add a header to your response that looks
&lt;br&gt;&amp;gt; like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Content-Disposition: attachment; filename=filename.extention
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/question-on-downloading-CGI-tp19334529p19368128.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19351191</id>
	<title>Re: Embperl Abandoned: Next Steps?</title>
	<published>2008-09-06T14:00:41Z</published>
	<updated>2008-09-06T14:00:41Z</updated>
	<author>
		<name>Kaare Rasmussen-3</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; So my question to the community (what's left of it) is this: which
&lt;br&gt;&amp;gt; language/product should I use instead of Embperl/Embperl Object? &amp;nbsp;Here
&lt;br&gt;&amp;gt; are my priorities:
&lt;br&gt;&amp;gt; - Camelness: I would prefer to stay under the Perl umbrella if possible.
&lt;br&gt;&amp;gt; I am not unwilling to learn other languages if necessary but Perl rocks!
&lt;br&gt;&amp;gt; - Power: Properly implemented, Embperl/Embperl Object is VERY powerful
&lt;br&gt;&amp;gt; and productive. &amp;nbsp;I don't want to downgrade to an inferior product
&lt;br&gt;&amp;gt; - Open Source: of course
&lt;br&gt;&amp;gt; - Continuity: I need to choose a product that is not on it's way to
&lt;br&gt;&amp;gt; retirement
&lt;br&gt;&amp;gt; - Documentation: Something well documented (perhaps supported by an
&lt;br&gt;&amp;gt; O'Reilly book).
&lt;br&gt;&amp;gt; - Community: There should be an active community with active discussion
&lt;br&gt;&amp;gt; boards and more than one person enhancing/maintaining the product
&lt;br&gt;&amp;gt; - Linux: Microsoft is out of the question.
&lt;/div&gt;&lt;br&gt;I think you should look at Catalyst, perhaps the most active Perl Web 
&lt;br&gt;development framework. It's a full-featured MVC framework that meets all of 
&lt;br&gt;the above requirements.
&lt;br&gt;&lt;br&gt;The model part is most often DBIx::Class (if you're talking to databases), and 
&lt;br&gt;the view part is mostly recommended to be Template Toolkit. I'm getting tired 
&lt;br&gt;og the latter, but in Catalyst you can switch components, so I'm thinking to 
&lt;br&gt;use something else. 
&lt;br&gt;It's possible to plug in Embperl there, but as you've found, it's not actively 
&lt;br&gt;being developed.
&lt;br&gt;&lt;br&gt;Perhaps Template::Declare. I like the observation that designers don't 
&lt;br&gt;understand templates, only CSS :-)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Med venlig hilsen
&lt;br&gt;Kaare Rasmussen, Jasonic
&lt;br&gt;&lt;br&gt;Jasonic &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Telefon: +45 3816 2582
&lt;br&gt;Nordre Fasanvej 12
&lt;br&gt;2000 Frederiksberg &amp;nbsp; &amp;nbsp; &amp;nbsp;Email: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19351191&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kaare@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19351191&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19351191&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Embperl-f189.html&quot; embed=&quot;fixTarget[189]&quot; target=&quot;_top&quot; &gt;Embperl&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Embperl-Abandoned%3A-Next-Steps--tp19331438p19351191.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19349580</id>
	<title>Re: mod_perl 2 and IPC::Open3</title>
	<published>2008-09-06T11:17:39Z</published>
	<updated>2008-09-06T11:17:39Z</updated>
	<author>
		<name>Tina Müller</name>
	</author>
	<content type="html">On Fri, 5 Sep 2008, Torsten Foertsch wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Don't know if it relates to the problem but this code is quite fragile.
&lt;br&gt;&amp;gt; It depends upon whether $content completely fits into the operating
&lt;br&gt;&amp;gt; systems pipe buffer. In your program the print $wtr or the close $wtr
&lt;br&gt;&amp;gt; statements may infinitely block if $content is too large.
&lt;br&gt;&lt;br&gt;thanks for pointing that out, I didn't know that.
&lt;br&gt;To keep it simple, I decided to write the code into a temporary file
&lt;br&gt;and give it as an argument to source-highlight, so that I can call it
&lt;br&gt;with a simple one-directional pipe-open.
&lt;br&gt;&lt;br&gt;Still, it would be interesting to know why the code did not work in MP
&lt;br&gt;2.02.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;tina
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://darkdance.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://darkdance.net/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://perlpunks.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://perlpunks.de/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.trashcave.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.trashcave.de/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-2-and-IPC%3A%3AOpen3-tp19316134p19349580.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19338297</id>
	<title>Re: question on downloading CGI</title>
	<published>2008-09-05T12:51:12Z</published>
	<updated>2008-09-05T12:51:12Z</updated>
	<author>
		<name>adam.prime</name>
	</author>
	<content type="html">Quoting &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;practicalperl@...&lt;/a&gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to generate a data file which should be downloaded by clients.
&lt;br&gt;&amp;gt; Rather than generate this file and put it in a web dir and tell
&lt;br&gt;&amp;gt; clients to download it, is there any way to generate the content
&lt;br&gt;&amp;gt; dynamicly and put it to cients? I mean I don't want to generate the
&lt;br&gt;&amp;gt; temporary file. Thanks.
&lt;br&gt;&lt;br&gt;This reads to me like you just want to cause the browser to prompt the &amp;nbsp;
&lt;br&gt;user to save the file to disk instead of render the content you are &amp;nbsp;
&lt;br&gt;generating in which case you should read about the Content-Disposition &amp;nbsp;
&lt;br&gt;header:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.ietf.org/rfc/rfc1806.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ietf.org/rfc/rfc1806.txt&lt;/a&gt;&lt;br&gt;&lt;br&gt;The quick summary of which is to add a header to your response that &amp;nbsp;
&lt;br&gt;looks like this:
&lt;br&gt;&lt;br&gt;Content-Disposition: attachment; filename=filename.extention
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/question-on-downloading-CGI-tp19334529p19338297.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19335727</id>
	<title>Re: question on downloading CGI</title>
	<published>2008-09-05T10:10:25Z</published>
	<updated>2008-09-05T10:10:25Z</updated>
	<author>
		<name>Torsten Foertsch</name>
	</author>
	<content type="html">On Fri 05 Sep 2008, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19335727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;practicalperl@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; I want to generate a data file which should be downloaded by clients.
&lt;br&gt;&amp;gt; Rather than generate this file and put it in a web dir and tell
&lt;br&gt;&amp;gt; clients to download it, is there any way to generate the content
&lt;br&gt;&amp;gt; dynamicly and put it to cients? I mean I don't want to generate the
&lt;br&gt;&amp;gt; temporary file.
&lt;br&gt;&lt;br&gt;Plenty.
&lt;br&gt;&lt;br&gt;For example in your httpd.conf
&lt;br&gt;&lt;br&gt;&amp;lt;Location /download&amp;gt;
&lt;br&gt;SetHandler modperl
&lt;br&gt;PerlResponseHandler &amp;quot;sub { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; use Apache2::RequestRec (); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; use Apache2::RequestIO (); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;&amp;nbsp; use Apache2::Connection (); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; $_[0]-&amp;gt;content_type('application/octet-stream'); &amp;nbsp; \
&lt;br&gt;&amp;nbsp; until($_[0]-&amp;gt;connection-&amp;gt;aborted) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; $_[0]-&amp;gt;print(rand); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; return 0; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;lt;/Location&amp;gt;
&lt;br&gt;&lt;br&gt;Now restart your server and then
&lt;br&gt;&lt;br&gt;curl -v &lt;a href=&quot;http://server/download&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://server/download&lt;/a&gt;&lt;br&gt;&lt;br&gt;And you'll get never ending randomness.
&lt;br&gt;&lt;br&gt;You can also write a little shell script and use it via mod_cgi:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the shell script
&lt;br&gt;#!/bin/bash
&lt;br&gt;echo Content-Type: application/octet-stream
&lt;br&gt;echo
&lt;br&gt;cat /dev/urandom
&lt;br&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; end of shell script
&lt;br&gt;&lt;br&gt;Now fetch the Apache docs and configure your server to execute the 
&lt;br&gt;script as CGI program.
&lt;br&gt;&lt;br&gt;Remember it is not necessarily faster to send dynamic content this way. 
&lt;br&gt;Sometimes it is faster to write a temporary file sometime before the 
&lt;br&gt;response phase and let the default handler send it. If you decide to 
&lt;br&gt;send the content on the fly try to figure out the content length and 
&lt;br&gt;set the Content-Length header. This can also improve your performance.
&lt;br&gt;&lt;br&gt;Torsten
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Need professional mod_perl support?
&lt;br&gt;Just hire me: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19335727&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;torsten.foertsch@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/question-on-downloading-CGI-tp19334529p19335727.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19335278</id>
	<title>Re: question on downloading CGI</title>
	<published>2008-09-05T09:46:52Z</published>
	<updated>2008-09-05T09:46:52Z</updated>
	<author>
		<name>Sean Davis-3</name>
	</author>
	<content type="html">On Fri, Sep 5, 2008 at 12:09 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19335278&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;practicalperl@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to generate a data file which should be downloaded by clients.
&lt;br&gt;&amp;gt; Rather than generate this file and put it in a web dir and tell
&lt;br&gt;&amp;gt; clients to download it, is there any way to generate the content
&lt;br&gt;&amp;gt; dynamicly and put it to cients? I mean I don't want to generate the
&lt;br&gt;&amp;gt; temporary file. Thanks.
&lt;br&gt;&lt;br&gt;Hi, Jen. &amp;nbsp;This list is for mod_perl users. &amp;nbsp;It sounds like you are new
&lt;br&gt;to web programming, but I could be wrong. &amp;nbsp;I would suggest with a
&lt;br&gt;google search for &amp;quot;perl cgi tutorial&amp;quot; and go from there. &amp;nbsp;There is
&lt;br&gt;also a beginners-cgi mailing list (not this) and perlmonks.org is a
&lt;br&gt;great site for general perl knowledge.
&lt;br&gt;&lt;br&gt;Sean
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/question-on-downloading-CGI-tp19334529p19335278.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19334529</id>
	<title>question on downloading CGI</title>
	<published>2008-09-05T09:09:59Z</published>
	<updated>2008-09-05T09:09:59Z</updated>
	<author>
		<name>Jen mlists</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I want to generate a data file which should be downloaded by clients.
&lt;br&gt;Rather than generate this file and put it in a web dir and tell
&lt;br&gt;clients to download it, is there any way to generate the content
&lt;br&gt;dynamicly and put it to cients? I mean I don't want to generate the
&lt;br&gt;temporary file. Thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Jen.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/question-on-downloading-CGI-tp19334529p19334529.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333326</id>
	<title>Re: Embperl Abandoned: Next Steps?</title>
	<published>2008-09-05T08:09:39Z</published>
	<updated>2008-09-05T08:09:39Z</updated>
	<author>
		<name>Neil Gunton</name>
	</author>
	<content type="html">Williams, David G. (HQ-JF000)[INDUS] wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; It now seems abundantly clear that Embperl development/discussion has
&lt;br&gt;&amp;gt; become very dormant. &amp;nbsp;Perhaps it has been abandoned. &amp;nbsp;I don't wish to
&lt;br&gt;&amp;gt; criticize Gerald for abandoning this project, rather, I would like to
&lt;br&gt;&amp;gt; thank him for his fine work. &amp;nbsp;I have been using Embperl professionally
&lt;br&gt;&amp;gt; since the beginning and am very grateful to him.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now I am at a crossroads of sorts - I have to choose between continuing
&lt;br&gt;&amp;gt; to develop in Embperl or migrating my code (lots of it) to another
&lt;br&gt;&amp;gt; product that is actively supported. &amp;nbsp;I think it's hard for me to justify
&lt;br&gt;&amp;gt; continuing Embperl development to my client given that the product
&lt;br&gt;&amp;gt; lacks:
&lt;br&gt;&amp;gt; - support
&lt;br&gt;&amp;gt; - ample documentation
&lt;br&gt;&amp;gt; - an active community (a la PHP) (and no, I do not like or advocate PHP)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So my question to the community (what's left of it) is this: which
&lt;br&gt;&amp;gt; language/product should I use instead of Embperl/Embperl Object? &amp;nbsp;Here
&lt;br&gt;&amp;gt; are my priorities:
&lt;br&gt;&amp;gt; - Camelness: I would prefer to stay under the Perl umbrella if possible.
&lt;br&gt;&amp;gt; I am not unwilling to learn other languages if necessary but Perl rocks!
&lt;br&gt;&amp;gt; - Power: Properly implemented, Embperl/Embperl Object is VERY powerful
&lt;br&gt;&amp;gt; and productive. &amp;nbsp;I don't want to downgrade to an inferior product
&lt;br&gt;&amp;gt; - Open Source: of course
&lt;br&gt;&amp;gt; - Continuity: I need to choose a product that is not on it's way to
&lt;br&gt;&amp;gt; retirement
&lt;br&gt;&amp;gt; - Documentation: Something well documented (perhaps supported by an
&lt;br&gt;&amp;gt; O'Reilly book).
&lt;br&gt;&amp;gt; - Community: There should be an active community with active discussion
&lt;br&gt;&amp;gt; boards and more than one person enhancing/maintaining the product
&lt;br&gt;&amp;gt; - Linux: Microsoft is out of the question.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much for your time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David G. Williams 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;I wish Gerald would state clearly what his plans and intentions are for 
&lt;br&gt;Embperl, so that we users can make plans for either our continued use of 
&lt;br&gt;the tool, or transition to some other product, or perhaps even 
&lt;br&gt;transferring development to someone else who has time to dedicate to the 
&lt;br&gt;open source side of things. I know I have quite a substantial commitment 
&lt;br&gt;to Embperl at this point, but no money at the moment. I am still trying 
&lt;br&gt;to develop my own sites. If/when I become the internet millionaire then 
&lt;br&gt;I would be more than happy to help fund further development and support 
&lt;br&gt;for this wonderful tool - I think it still works so well, and would be 
&lt;br&gt;very sad to see it disappear through simple neglect. I for one could not 
&lt;br&gt;imagine transitioning to PHP from here, that would just be too 
&lt;br&gt;depressing. I like the Perl universe.
&lt;br&gt;&lt;br&gt;Ruby on Rails seems to be the tool that's been gaining the &amp;quot;buzz&amp;quot; of 
&lt;br&gt;late, but I also seem to be getting the impression that the honeymoon 
&lt;br&gt;may be over as people start to realize some of the realities of Ruby (no 
&lt;br&gt;expert myself there, just what I get the impression of from many posts 
&lt;br&gt;skimmed here and there).
&lt;br&gt;&lt;br&gt;I'm in the UK visiting family at the moment, but would be glad to 
&lt;br&gt;discuss further Embperl development options once I get back home after 
&lt;br&gt;Sept 12th. I'm not sure if Gerald has been run over by a bus, or if he 
&lt;br&gt;has simply been busy, or just lost interest in the community side of 
&lt;br&gt;things here. I remember in the past I got nervous when he appeared to 
&lt;br&gt;&amp;quot;go away&amp;quot; for periods of time, but then he always seemed to turn up 
&lt;br&gt;again and assure us that everything was ok and was still committed etc. 
&lt;br&gt;That's fine, if that's all this is. It would be nice to get an update 
&lt;br&gt;from Gerald on his status and intentions, whenever he can get to it.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Neil
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333326&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Embperl-f189.html&quot; embed=&quot;fixTarget[189]&quot; target=&quot;_top&quot; &gt;Embperl&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Embperl-Abandoned%3A-Next-Steps--tp19331438p19333326.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19331438</id>
	<title>Embperl Abandoned: Next Steps?</title>
	<published>2008-09-05T06:37:35Z</published>
	<updated>2008-09-05T06:37:35Z</updated>
	<author>
		<name>Williams, David G. (HQ-IF000)[INDUS]</name>
	</author>
	<content type="html">It now seems abundantly clear that Embperl development/discussion has
&lt;br&gt;become very dormant. &amp;nbsp;Perhaps it has been abandoned. &amp;nbsp;I don't wish to
&lt;br&gt;criticize Gerald for abandoning this project, rather, I would like to
&lt;br&gt;thank him for his fine work. &amp;nbsp;I have been using Embperl professionally
&lt;br&gt;since the beginning and am very grateful to him.
&lt;br&gt;&lt;br&gt;Now I am at a crossroads of sorts - I have to choose between continuing
&lt;br&gt;to develop in Embperl or migrating my code (lots of it) to another
&lt;br&gt;product that is actively supported. &amp;nbsp;I think it's hard for me to justify
&lt;br&gt;continuing Embperl development to my client given that the product
&lt;br&gt;lacks:
&lt;br&gt;- support
&lt;br&gt;- ample documentation
&lt;br&gt;- an active community (a la PHP) (and no, I do not like or advocate PHP)
&lt;br&gt;&lt;br&gt;So my question to the community (what's left of it) is this: which
&lt;br&gt;language/product should I use instead of Embperl/Embperl Object? &amp;nbsp;Here
&lt;br&gt;are my priorities:
&lt;br&gt;- Camelness: I would prefer to stay under the Perl umbrella if possible.
&lt;br&gt;I am not unwilling to learn other languages if necessary but Perl rocks!
&lt;br&gt;- Power: Properly implemented, Embperl/Embperl Object is VERY powerful
&lt;br&gt;and productive. &amp;nbsp;I don't want to downgrade to an inferior product
&lt;br&gt;- Open Source: of course
&lt;br&gt;- Continuity: I need to choose a product that is not on it's way to
&lt;br&gt;retirement
&lt;br&gt;- Documentation: Something well documented (perhaps supported by an
&lt;br&gt;O'Reilly book).
&lt;br&gt;- Community: There should be an active community with active discussion
&lt;br&gt;boards and more than one person enhancing/maintaining the product
&lt;br&gt;- Linux: Microsoft is out of the question.
&lt;br&gt;&lt;br&gt;Thank you very much for your time.
&lt;br&gt;&lt;br&gt;David G. Williams 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19331438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19331438&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;embperl-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Embperl-f189.html&quot; embed=&quot;fixTarget[189]&quot; target=&quot;_top&quot; &gt;Embperl&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Embperl-Abandoned%3A-Next-Steps--tp19331438p19331438.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19326225</id>
	<title>Re: mod_perl 2 and IPC::Open3</title>
	<published>2008-09-05T00:23:57Z</published>
	<updated>2008-09-05T00:23:57Z</updated>
	<author>
		<name>Torsten Foertsch</name>
	</author>
	<content type="html">On Thu 04 Sep 2008, Tina Müller wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;      $pid = open3($wtr, $rdr, $err,
&lt;br&gt;&amp;gt;          '/usr/bin/source-highlight', '-s', 'perl', '-css',
&lt;br&gt;&amp;gt; '--no-doc');
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;print $wtr $content; 
&lt;br&gt;&amp;gt;      close $wtr;
&lt;br&gt;&amp;gt;      warn __PACKAGE__.':'.__LINE__.&amp;quot;: before read loop\n&amp;quot;;
&lt;br&gt;&amp;gt;      while (&amp;lt;$rdr&amp;gt;) {
&lt;br&gt;&amp;gt;          # this is not executed
&lt;br&gt;&amp;gt;          warn __PACKAGE__.':'.__LINE__.&amp;quot;: line $_\n&amp;quot;;
&lt;br&gt;&amp;gt;          $highlighted .= $_;
&lt;br&gt;&amp;gt;      }
&lt;/div&gt;&lt;br&gt;Don't know if it relates to the problem but this code is quite fragile. 
&lt;br&gt;It depends upon whether $content completely fits into the operating 
&lt;br&gt;systems pipe buffer. In your program the print $wtr or the close $wtr 
&lt;br&gt;statements may infinitely block if $content is too large.
&lt;br&gt;&lt;br&gt;To illustrate that try this:
&lt;br&gt;&lt;br&gt;perl -e 'pipe my ($r, $w) or die &amp;quot;pipe: $!\n&amp;quot;; print $w &amp;quot;x&amp;quot;x64000; 
&lt;br&gt;warn &amp;quot;printed\n&amp;quot;; close $w;'
&lt;br&gt;&lt;br&gt;Here a pipe is created and written to but never read from. This example 
&lt;br&gt;succeeds on my linux box. If 64000 is raised to 69000 the &amp;quot;print $w&amp;quot; 
&lt;br&gt;succeeds and I see the output of warn(). But the process never ends. It 
&lt;br&gt;is blocked in the close() operation. If the buffer length is raised a 
&lt;br&gt;bit further to 70000 I don't even see the warning. The process is 
&lt;br&gt;blocked in the print() operation. The pipe buffer size depends upon the 
&lt;br&gt;operating system. So your numbers may vary.
&lt;br&gt;&lt;br&gt;I'd recommend to rewrite that piece based on either perl's select(), 
&lt;br&gt;IO::Select or some kind of event library like Lib::Event, EV, Event or 
&lt;br&gt;even POE. In all cases you have to use non-blocking IO for reading and 
&lt;br&gt;writing combined with sysread/syswrite.
&lt;br&gt;&lt;br&gt;Further, I'd suggest a bit of error handling. All those operations 
&lt;br&gt;open3, print, close may fail. Only open3 reports the failure via an 
&lt;br&gt;exception.
&lt;br&gt;&lt;br&gt;Also, you may want to watch out for SIGPIPE.
&lt;br&gt;&lt;br&gt;Torsten
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Need professional mod_perl support?
&lt;br&gt;Just hire me: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19326225&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;torsten.foertsch@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-2-and-IPC%3A%3AOpen3-tp19316134p19326225.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19321935</id>
	<title>RE: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault</title>
	<published>2008-09-04T16:15:19Z</published>
	<updated>2008-09-04T16:15:19Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">&amp;gt; On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric 
&lt;br&gt;&amp;gt; &amp;gt; When I say that Test::Builder/Test::More/etc. are tightly 
&lt;br&gt;&amp;gt; &amp;gt; coupled, I'm talking really entwined. &amp;nbsp;In some cases, we have
&lt;br&gt;created a 
&lt;br&gt;&amp;gt; &amp;gt; class with a bunch of test-related methods that look through the
&lt;br&gt;symbol 
&lt;br&gt;&amp;gt; &amp;gt; table and find methods that =~ m/^test_/ and then we run those
&lt;br&gt;tests, which
&lt;br&gt;&amp;gt; &amp;gt; include calls to Test::Builder methods. &amp;nbsp;There's no easy way to turn
&lt;br&gt;&amp;gt; &amp;gt; this off.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This happens even when you're not testing? &amp;nbsp;Or do you really want to
&lt;br&gt;&amp;gt; run those tests every time anyone loads the module?
&lt;br&gt;&lt;br&gt;No, we only run those tests when we check them into CVS and the hooks
&lt;br&gt;trigger scripts that run the test methods in our modules. &amp;nbsp;The problem
&lt;br&gt;is that when you load/use Test::Builder, it creates a singleton instance
&lt;br&gt;that does some initialization, including mapping STDERR and STDOUT -- I
&lt;br&gt;believe to class variables. &amp;nbsp;Have you ever noticed how you never see
&lt;br&gt;anything coming out of CPAN mods when you do a make test? &amp;nbsp;I think this
&lt;br&gt;is the reason: &amp;nbsp;stdout and stderr are captured this way.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; When you say that we could load it conditionally -- again, 
&lt;br&gt;&amp;gt; &amp;gt; not really an option -- are you thinking that we could do a
&lt;br&gt;conditional 
&lt;br&gt;&amp;gt; &amp;gt; require() and import explicitly or use fully-qualified calls?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The former - a BEGIN block that determines the situation and loads
&lt;br&gt;&amp;gt; test modules if you're not in mod_perl. &amp;nbsp;You can also do tricks to
&lt;br&gt;&amp;gt; fake Test::Builder's API without loading it, but that's a really
&lt;br&gt;&amp;gt; roundabout way of dealing with the issue.
&lt;br&gt;&lt;br&gt;Right. &amp;nbsp;That'd be good if we were't a) subclassing from modules that
&lt;br&gt;directly use Test::Builder methods, and b) have T::B calls throughout
&lt;br&gt;our code.
&lt;br&gt;&lt;br&gt;Right now I'm working on figuring out how to disable the mapping (which
&lt;br&gt;appears to happen in Test::Builder-&amp;gt;_dup_stdhandles() so that we can
&lt;br&gt;have everything play nicely together.
&lt;br&gt;&lt;br&gt;As much as I love having my modules validated whenver they're checked in
&lt;br&gt;(especially for the other developers!) this is killin' me.
&lt;br&gt;&lt;br&gt;E
&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl2-%2B-ModPerl%3A%3ARegistryPrefork--%2B-Test%3A%3ABuilder-%3D-segfault-tp19321056p19321935.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19321812</id>
	<title>Re: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault</title>
	<published>2008-09-04T16:04:39Z</published>
	<updated>2008-09-04T16:04:39Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321812&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; When I say that Test::Builder/Test::More/etc. are tightly coupled, I'm
&lt;br&gt;&amp;gt; talking really entwined. &amp;nbsp;In some cases, we have created a class with a
&lt;br&gt;&amp;gt; bunch of test-related methods that look through the symbol table and
&lt;br&gt;&amp;gt; find methods that =~ m/^test_/ and then we run those tests, which
&lt;br&gt;&amp;gt; include calls to Test::Builder methods. &amp;nbsp;There's no easy way to turn
&lt;br&gt;&amp;gt; this off.
&lt;br&gt;&lt;br&gt;This happens even when you're not testing? &amp;nbsp;Or do you really want to
&lt;br&gt;run those tests every time anyone loads the module?
&lt;br&gt;&lt;br&gt;&amp;gt; When you say that we could load it conditionally -- again, not really an
&lt;br&gt;&amp;gt; option -- are you thinking that we could do a conditional require() and
&lt;br&gt;&amp;gt; import explicitly or use fully-qualified calls?
&lt;br&gt;&lt;br&gt;The former - a BEGIN block that determines the situation and loads
&lt;br&gt;test modules if you're not in mod_perl. &amp;nbsp;You can also do tricks to
&lt;br&gt;fake Test::Builder's API without loading it, but that's a really
&lt;br&gt;roundabout way of dealing with the issue.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl2-%2B-ModPerl%3A%3ARegistryPrefork--%2B-Test%3A%3ABuilder-%3D-segfault-tp19321056p19321812.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19321740</id>
	<title>RE: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault</title>
	<published>2008-09-04T15:58:47Z</published>
	<updated>2008-09-04T15:58:47Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">Hey, Perrin, 
&lt;br&gt;&lt;br&gt;When I say that Test::Builder/Test::More/etc. are tightly coupled, I'm
&lt;br&gt;talking really entwined. &amp;nbsp;In some cases, we have created a class with a
&lt;br&gt;bunch of test-related methods that look through the symbol table and
&lt;br&gt;find methods that =~ m/^test_/ and then we run those tests, which
&lt;br&gt;include calls to Test::Builder methods. &amp;nbsp;There's no easy way to turn
&lt;br&gt;this off.
&lt;br&gt;&lt;br&gt;When you say that we could load it conditionally -- again, not really an
&lt;br&gt;option -- are you thinking that we could do a conditional require() and
&lt;br&gt;import explicitly or use fully-qualified calls? 
&lt;br&gt;&lt;br&gt;Eric
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321740&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321740&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt;] On 
&lt;br&gt;&amp;gt; Behalf Of Perrin Harkins
&lt;br&gt;&amp;gt; Sent: Thursday, September 04, 2008 6:36 PM
&lt;br&gt;&amp;gt; To: Berg, Eric
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321740&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;modperl@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: mod_perl2 + ModPerl::RegistryPrefork + 
&lt;br&gt;&amp;gt; Test::Builder = segfault
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Thu, Sep 4, 2008 at 6:09 PM, Berg, Eric 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321740&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Many of our core modules contain test methods that are 
&lt;br&gt;&amp;gt; executed during
&lt;br&gt;&amp;gt; &amp;gt; our CVS checkin process as regression tests, so we'd have 
&lt;br&gt;&amp;gt; to completely
&lt;br&gt;&amp;gt; &amp;gt; redo our regression testing architecture to decouple 
&lt;br&gt;&amp;gt; Test::Builder from
&lt;br&gt;&amp;gt; &amp;gt; our code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As a quick fix, you could load it conditionally based on whether or
&lt;br&gt;&amp;gt; not $ENV{MOD_PERL} is true.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Perrin
&lt;br&gt;&amp;gt; 
&lt;/div&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl2-%2B-ModPerl%3A%3ARegistryPrefork--%2B-Test%3A%3ABuilder-%3D-segfault-tp19321056p19321740.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19321457</id>
	<title>Re: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault</title>
	<published>2008-09-04T15:35:42Z</published>
	<updated>2008-09-04T15:35:42Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Thu, Sep 4, 2008 at 6:09 PM, Berg, Eric &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321457&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Many of our core modules contain test methods that are executed during
&lt;br&gt;&amp;gt; our CVS checkin process as regression tests, so we'd have to completely
&lt;br&gt;&amp;gt; redo our regression testing architecture to decouple Test::Builder from
&lt;br&gt;&amp;gt; our code.
&lt;br&gt;&lt;br&gt;As a quick fix, you could load it conditionally based on whether or
&lt;br&gt;not $ENV{MOD_PERL} is true.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl2-%2B-ModPerl%3A%3ARegistryPrefork--%2B-Test%3A%3ABuilder-%3D-segfault-tp19321056p19321457.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19321056</id>
	<title>mod_perl2 + ModPerl::RegistryPrefork  + Test::Builder = segfault</title>
	<published>2008-09-04T15:09:21Z</published>
	<updated>2008-09-04T15:09:21Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">Looks like we've narrowed the problem that I've described here
&lt;br&gt;(&lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/perl-modperl/200808.mbox/%3c5C&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail-archives.apache.org/mod_mbox/perl-modperl/200808.mbox/%3c5C&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19321056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;AFF755525FC5418CCF35FAEB2683BE12A31A6C@...&lt;/a&gt;.
&lt;br&gt;com%3e)
&lt;br&gt;&lt;br&gt;It's something having to do with our use of Test::Builder. &amp;nbsp;Simplly
&lt;br&gt;including Test::Builder in a CGI running under ModPerl::RegistryPrefork
&lt;br&gt;causes it to segfault on a very regular basis.
&lt;br&gt;&lt;br&gt;Here's the message I posted on CPAN Forum for Test::Simple:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;Recently, during the process of porting all my apache 1.3/mod_perl 1.x
&lt;br&gt;CGI's running under ModPerl::RegistryPrefork, I started running into
&lt;br&gt;regular segfaults. &amp;nbsp;After a whole bunch of head scratching and testing,
&lt;br&gt;we narrowed down the problem to our use'ing Test::Builder.
&lt;br&gt;&lt;br&gt;It appears to be some kind of conflict that might have to do with the
&lt;br&gt;BEGIN code block that contains these lines for non-threaded Perl:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *share = sub { return $_[0] };
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *lock &amp;nbsp;= sub { 0 };
&lt;br&gt;&lt;br&gt;I don't completely understand what these do in the context of
&lt;br&gt;non-threaded apps, though they appear to be fairly innocuous at first
&lt;br&gt;glance.
&lt;br&gt;&lt;br&gt;In any case, it's just using Test::Builder that causes Apache 2.2/mp2 to
&lt;br&gt;segfault.
&lt;br&gt;&lt;br&gt;Many of our core modules contain test methods that are executed during
&lt;br&gt;our CVS checkin process as regression tests, so we'd have to completely
&lt;br&gt;redo our regression testing architecture to decouple Test::Builder from
&lt;br&gt;our code.
&lt;br&gt;&lt;br&gt;Has anybody had any similar experience with this problem, or can you
&lt;br&gt;help shed some light on the problem to help get us to a solution?
&lt;br&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
&lt;br&gt;&lt;br&gt;Has anybody seen this or anything like it before?
&lt;br&gt;&lt;br&gt;Eric
&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl2-%2B-ModPerl%3A%3ARegistryPrefork--%2B-Test%3A%3ABuilder-%3D-segfault-tp19321056p19321056.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19316134</id>
	<title>mod_perl 2 and IPC::Open3</title>
	<published>2008-09-04T10:45:08Z</published>
	<updated>2008-09-04T10:45:08Z</updated>
	<author>
		<name>Tina Müller</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm using source-highlight in a mod_perl application. This program takes
&lt;br&gt;code in STDIN and prints the html-highlighted code to STDOUT.
&lt;br&gt;My code works fine from the commandline and in
&lt;br&gt;Apache/1.3.37 (Unix) mod_perl/1.30
&lt;br&gt;(perl 5.8.8)
&lt;br&gt;&lt;br&gt;On another machine it also works from the commandline, but not in
&lt;br&gt;Apache/2.2.3 (Debian) mod_perl/2.0.2 Perl/v5.8.8
&lt;br&gt;&lt;br&gt;There is no error, I just cannot get anything from the read handle, it
&lt;br&gt;seems to be empty.
&lt;br&gt;Also an &amp;quot;or die $!&amp;quot; after the open3 is not executed.
&lt;br&gt;&lt;br&gt;I searched for similar problems, I found a posting where they said it would
&lt;br&gt;help to untie STDIN before the open3, but this didn't help.
&lt;br&gt;&lt;br&gt;I also don't get any lines back from the error handle.
&lt;br&gt;&lt;br&gt;Does anybody have an idea what it could be? Maybe I should update to a
&lt;br&gt;more recent mod_perl?
&lt;br&gt;&lt;br&gt;The version of IPC::Open3 is 1.02
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;tina
&lt;br&gt;&lt;br&gt;Here's the code:
&lt;br&gt;# --------------------------
&lt;br&gt;use strict;
&lt;br&gt;use warnings;
&lt;br&gt;use IPC::Open3;
&lt;br&gt;use Data::Dumper;
&lt;br&gt;use POSIX;
&lt;br&gt;&lt;br&gt;my $content = &amp;lt;&amp;lt;'EOM';
&lt;br&gt;if ($foo) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;bar() # bar
&lt;br&gt;}
&lt;br&gt;EOM
&lt;br&gt;my $highlighted = '';
&lt;br&gt;my $success = 0;
&lt;br&gt;my $pid;
&lt;br&gt;eval {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;my($wtr, $rdr, $err);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$pid = open3($wtr, $rdr, $err,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'/usr/bin/source-highlight', '-s', 'perl', '-css', '--no-doc');
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print $wtr $content;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;close $wtr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;warn __PACKAGE__.':'.__LINE__.&amp;quot;: before read loop\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while (&amp;lt;$rdr&amp;gt;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# this is not executed
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;warn __PACKAGE__.':'.__LINE__.&amp;quot;: line $_\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$highlighted .= $_;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# code after the loop is executed
&lt;br&gt;};
&lt;br&gt;if ($@) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;warn __PACKAGE__.':'.__LINE__.&amp;quot;: ERROR happened: $@ ($$)\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$highlighted = &amp;quot;error&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;POSIX::_exit(1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;die &amp;quot;oops ($$)&amp;quot;;
&lt;br&gt;}
&lt;br&gt;else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;my $exit = waitpid $pid, 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$success = 1 if $exit;
&lt;br&gt;}
&lt;br&gt;# --------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://darkdance.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://darkdance.net/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://perlpunks.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://perlpunks.de/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.trashcave.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.trashcave.de/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-2-and-IPC%3A%3AOpen3-tp19316134p19316134.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19314169</id>
	<title>Stacktrace of segfault on fork in mp2/perl-5.10</title>
	<published>2008-09-04T09:12:57Z</published>
	<updated>2008-09-04T09:12:57Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">I posted this a little while ago, and was hoping that some of you
&lt;br&gt;C-oriented folks could take a look at this stack trace and see if
&lt;br&gt;anything jumps out at you that would indicate why I'm consistently
&lt;br&gt;getting segmentation faults (11) when forking in a CGI running under
&lt;br&gt;ModPerl::RegistryPrefork.
&lt;br&gt;&lt;br&gt;Thanks for any insight you can provide.
&lt;br&gt;&lt;br&gt;[Wed Aug 27 18:29:29 2008] pid 24456 mod_backtrace backtrace for sig 11
&lt;br&gt;(thread &amp;quot;pid&amp;quot; 24456)
&lt;br&gt;[Wed Aug 27 18:29:29 2008] pid 24456 mod_backtrace main() is at 8062fb8
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_backtrace.so[0xa3fa43]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut(ap_run_fatal_exception+0x2e)
&lt;br&gt;[0x8079ce2]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut[0x807b0a0]
&lt;br&gt;/lib/tls/libpthread.so.0[0x5b9a98]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(Perl_PerlIO_flush+0
&lt;br&gt;x68)[0x116e648]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(Perl_pp_fork+0x45)[
&lt;br&gt;0x1149b55]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(Perl_runops_standar
&lt;br&gt;d+0x18)[0x1102fe8]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(Perl_call_sv+0x49a)
&lt;br&gt;[0x110106a]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(modperl_callback+0x
&lt;br&gt;180)[0x10764f0]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(modperl_callback_ru
&lt;br&gt;n_handlers+0x35a)[0x1076b3a]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(modperl_callback_pe
&lt;br&gt;r_dir+0x53)[0x1076e83]
&lt;br&gt;/home/pointsrv/apache/config/dev/modules/mod_perl.so(modperl_response_ha
&lt;br&gt;ndler_cgi+0x11b)[0x107354b]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut(ap_run_handler+0x32)[0x80735
&lt;br&gt;6e]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut(ap_invoke_handler+0xad)[0x80
&lt;br&gt;73939]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut(ap_process_request+0x18d)[0x
&lt;br&gt;807e669]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut[0x807c145]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut(ap_run_process_connection+0x
&lt;br&gt;32)[0x8078e12]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut[0x80822c9]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut[0x808249e]
&lt;br&gt;/home/erberg/public_html/work/point-www/aut[0x808252c]
&lt;br&gt;[Wed Aug 27 18:29:29 2008] pid 24456 mod_backtrace end of backtrace
&lt;br&gt;[Wed Aug 27 18:29:30 2008] [notice] child pid 24456 exit 
&lt;br&gt;signal Segmentation fault (11), possible coredump in /tmp
&lt;br&gt;&lt;br&gt;&lt;br&gt;Eric Berg
&lt;br&gt;&lt;br&gt;&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Stacktrace-of-segfault-on-fork-in-mp2-perl-5.10-tp19314169p19314169.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19308757</id>
	<title>Output of external program is getting lost in mod_perl 2.0.4</title>
	<published>2008-09-04T04:50:43Z</published>
	<updated>2008-09-04T04:50:43Z</updated>
	<author>
		<name>Shibi NS</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;div&gt;Hi,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am migrating my application from httpd 1.x and mod_perl 1.x to mod_perl-2.0.4 and httpd-2.2.9. Some of the forms in my application uses &amp;nbsp;and standalone script which excutes some external scripts&lt;/div&gt;
&lt;div&gt;like os commands or some other perl/shell scripts.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here is the source code for the script that executes an external program &lt;a href=&quot;http://rafb.net/p/Wjj41u36.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rafb.net/p/Wjj41u36.html&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here the function do_cmd executes and stores output to self-&amp;gt;{DOCMD_OUTPUT} . This was working fine when we executing mod_perl 1.x but after we migrated to&lt;/div&gt;&lt;div&gt;mod_perl 2.0.4 as we call get_last_do_cmd_output function the output is empty. Any idea where the output is lost ? . Look at do_cmd and _for_exec function to see how&amp;nbsp;&lt;/div&gt;
&lt;div&gt;we are re-directing&amp;nbsp;the output to a pipe&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;--Shibi Ns--&lt;br&gt;
&lt;/div&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Output-of-external-program-is-getting-lost-in-mod_perl-2.0.4-tp19308757p19308757.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19293397</id>
	<title>Re: mod_perl users survey</title>
	<published>2008-09-03T09:55:17Z</published>
	<updated>2008-09-03T09:55:17Z</updated>
	<author>
		<name>adam.prime</name>
	</author>
	<content type="html">&lt;br&gt;One final call for responses. &amp;nbsp;It'd also be appreciated if you could &amp;nbsp;
&lt;br&gt;forward the survey on to your local Perl Mongers Groups to help us &amp;nbsp;
&lt;br&gt;reach some people that might be a little more disconnected from the &amp;nbsp;
&lt;br&gt;mod_perl community.
&lt;br&gt;&lt;br&gt;We've got over 300 responses so far, thanks to everyone that has taken &amp;nbsp;
&lt;br&gt;the time to respond.
&lt;br&gt;&lt;br&gt;Adam
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quoting &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19293397&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;adam.prime@...&lt;/a&gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; At the impromptu mod_perl BOF at YAPC::NA, Fred Moyer any myself
&lt;br&gt;&amp;gt;&amp;gt; hacked together a short mod_perl survey to help identify the current
&lt;br&gt;&amp;gt;&amp;gt; needs of mod_perl users. It was inspired by the Perl survey done last
&lt;br&gt;&amp;gt;&amp;gt; year by Kirrily Robert. (&lt;a href=&quot;http://perlsurvey.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://perlsurvey.org&lt;/a&gt;). &amp;nbsp;If you read dev@ and
&lt;br&gt;&amp;gt;&amp;gt; already filled this out, please don't do it again.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The link is here:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.surveymonkey.com/s.aspx?sm=bQyb2RFCBuVb0P52yhaCMg_3d_3d&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.surveymonkey.com/s.aspx?sm=bQyb2RFCBuVb0P52yhaCMg_3d_3d&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The survey seeks to attain these goals:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1) Determine the current breakdown of mod_perl users in terms of what
&lt;br&gt;&amp;gt;&amp;gt; versions, modules, and platforms mod_perl users are using.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2) Give mod_perl users a chance to provide feedback to the development
&lt;br&gt;&amp;gt;&amp;gt; team on where they think mod_perl development should be headed.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please take a few minutes and fill it out. &amp;nbsp;Neither of us are
&lt;br&gt;&amp;gt;&amp;gt; statisticians, and there are plenty of questions that haven't been
&lt;br&gt;&amp;gt;&amp;gt; asked, but we only get 10 questions for free with survey monkey, so
&lt;br&gt;&amp;gt;&amp;gt; we've done what we could with our non-existant resources.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt; Adam
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-users-survey-tp18320040p19293397.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19276866</id>
	<title>Re: mp2, STDIN/POST is clobbered by CGI-&gt;new($r);</title>
	<published>2008-09-02T12:34:57Z</published>
	<updated>2008-09-02T12:34:57Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 6:35 PM, Ashley Pond V &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19276866&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ashley.pond.v@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; How could you read the POST body without clobbering it to hand off to some
&lt;br&gt;&amp;gt; PHP, or whatever is next in line?
&lt;br&gt;&lt;br&gt;I don't think you can. &amp;nbsp;Usually people use something like libapreq to
&lt;br&gt;get around this, since it can just keep the parsed data and let you
&lt;br&gt;use it across multiple phases, but that only works when everyone is
&lt;br&gt;calling libapreq for their data.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mp2%2C-STDIN-POST-is-clobbered-by-CGI-%3Enew%28%24r%29--tp19228485p19276866.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19265513</id>
	<title>Re: mod_perl compilation problem</title>
	<published>2008-09-02T00:37:07Z</published>
	<updated>2008-09-02T00:37:07Z</updated>
	<author>
		<name>Ebner.EJ.Johannes</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;Dan Axtell wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm still trying to figure out how to build mod_perl on an 
&lt;br&gt;&amp;gt;AMD x86_64 system. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; It's running gcc 4.1.1 on Red Hat 4.1.1-52. &amp;nbsp;Perl 5.8.8 + 
&lt;br&gt;&amp;gt;Apache + mod_perl is 
&lt;br&gt;&amp;gt;&amp;gt; already installed, but I wanted to try and build everything 
&lt;br&gt;&amp;gt;with 5.10 because 
&lt;br&gt;&amp;gt;&amp;gt; I've read that the RedHat Perl binaries are sometimes very 
&lt;br&gt;&amp;gt;slow, and I want to 
&lt;br&gt;&amp;gt;&amp;gt; check out some of the Perl 5.10 features on a new server.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I'm building Perl with these options:
&lt;br&gt;&amp;gt;&amp;gt; Configure -de -Dprefix=/usr/local -Accflags=&amp;quot;-fPIC&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Perl builds, tests, and seems to run fine.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; When I make mod_perl, I get this error:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; /usr/bin/ld: 
&lt;br&gt;&amp;gt;/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a(gv.o): 
&lt;br&gt;&amp;gt;&amp;gt; relocation R_X86_64_32 against `a local symbol' can not be 
&lt;br&gt;&amp;gt;used when making a 
&lt;br&gt;&amp;gt;&amp;gt; shared object; recompile with -fPIC
&lt;br&gt;&amp;gt;&amp;gt; /usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a: 
&lt;br&gt;&amp;gt;could not read 
&lt;br&gt;&amp;gt;&amp;gt; symbols: Bad value
&lt;br&gt;&amp;gt;&amp;gt; collect2: ld returned 1 exit status
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; If I'm building Perl explicity with -fPIC, why does mod_perl 
&lt;br&gt;&amp;gt;think I'm not?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Did you remove all previous perl build fragments that may have been 
&lt;br&gt;&amp;gt;compiled without -fPIC? &amp;nbsp;That is, can you try a clean install with a 
&lt;br&gt;&amp;gt;prefix like /home/myuser/testperl, and then try to build mod_perl 
&lt;br&gt;&amp;gt;against that perl installation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I haven't tried 5.10 on x86_64 yet.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I suppose I can live with 5.8.8, but there should be a way 
&lt;br&gt;&amp;gt;to build this.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Dan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I tried mod_perl on SLES 10 AMD64 worked perfectly with Perl 5.10 - but
&lt;br&gt;with the compile options for Perl you specified earlier (-fPIC). What
&lt;br&gt;Fred is writing looks like the best solution to me.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-compilation-problem-tp19248291p19265513.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19254827</id>
	<title>Re: mod_perl compilation problem</title>
	<published>2008-09-01T06:30:20Z</published>
	<updated>2008-09-01T06:30:20Z</updated>
	<author>
		<name>Dan Axtell</name>
	</author>
	<content type="html">&amp;gt; Did you remove all previous perl build fragments that may have been
&lt;br&gt;&amp;gt; compiled without -fPIC? &amp;nbsp;That is, can you try a clean install with a
&lt;br&gt;&amp;gt; prefix like /home/myuser/testperl, and then try to build mod_perl
&lt;br&gt;&amp;gt; against that perl installation?
&lt;br&gt;&amp;gt;
&lt;br&gt;I'll try that next.
&lt;br&gt;&lt;br&gt;Question: &amp;nbsp;my home box is opensuse 11.0 and it comes with perl 5.10 + mod_perl 
&lt;br&gt;for and AMD x86_64. &amp;nbsp;Can I just upload the mod_perl.so binary, or will small 
&lt;br&gt;differences like the perl binary being in different locations stop it from 
&lt;br&gt;working?
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-compilation-problem-tp19248291p19254827.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19248464</id>
	<title>Re: mod_perl compilation problem</title>
	<published>2008-08-31T20:28:29Z</published>
	<updated>2008-08-31T20:28:29Z</updated>
	<author>
		<name>Fred Moyer</name>
	</author>
	<content type="html">Dan Axtell wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm still trying to figure out how to build mod_perl on an AMD x86_64 system. &amp;nbsp;
&lt;br&gt;&amp;gt; It's running gcc 4.1.1 on Red Hat 4.1.1-52. &amp;nbsp;Perl 5.8.8 + Apache + mod_perl is 
&lt;br&gt;&amp;gt; already installed, but I wanted to try and build everything with 5.10 because 
&lt;br&gt;&amp;gt; I've read that the RedHat Perl binaries are sometimes very slow, and I want to 
&lt;br&gt;&amp;gt; check out some of the Perl 5.10 features on a new server.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm building Perl with these options:
&lt;br&gt;&amp;gt; Configure -de -Dprefix=/usr/local -Accflags=&amp;quot;-fPIC&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Perl builds, tests, and seems to run fine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I make mod_perl, I get this error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; /usr/bin/ld: /usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a(gv.o): 
&lt;br&gt;&amp;gt; relocation R_X86_64_32 against `a local symbol' can not be used when making a 
&lt;br&gt;&amp;gt; shared object; recompile with -fPIC
&lt;br&gt;&amp;gt; /usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a: could not read 
&lt;br&gt;&amp;gt; symbols: Bad value
&lt;br&gt;&amp;gt; collect2: ld returned 1 exit status
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I'm building Perl explicity with -fPIC, why does mod_perl think I'm not?
&lt;/div&gt;&lt;br&gt;Did you remove all previous perl build fragments that may have been 
&lt;br&gt;compiled without -fPIC? &amp;nbsp;That is, can you try a clean install with a 
&lt;br&gt;prefix like /home/myuser/testperl, and then try to build mod_perl 
&lt;br&gt;against that perl installation?
&lt;br&gt;&lt;br&gt;I haven't tried 5.10 on x86_64 yet.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I suppose I can live with 5.8.8, but there should be a way to build this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-compilation-problem-tp19248291p19248464.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19248291</id>
	<title>mod_perl compilation problem</title>
	<published>2008-08-31T19:55:35Z</published>
	<updated>2008-08-31T19:55:35Z</updated>
	<author>
		<name>Dan Axtell</name>
	</author>
	<content type="html">I'm still trying to figure out how to build mod_perl on an AMD x86_64 system. &amp;nbsp;
&lt;br&gt;It's running gcc 4.1.1 on Red Hat 4.1.1-52. &amp;nbsp;Perl 5.8.8 + Apache + mod_perl is 
&lt;br&gt;already installed, but I wanted to try and build everything with 5.10 because 
&lt;br&gt;I've read that the RedHat Perl binaries are sometimes very slow, and I want to 
&lt;br&gt;check out some of the Perl 5.10 features on a new server.
&lt;br&gt;&lt;br&gt;I'm building Perl with these options:
&lt;br&gt;Configure -de -Dprefix=/usr/local -Accflags=&amp;quot;-fPIC&amp;quot;
&lt;br&gt;&lt;br&gt;Perl builds, tests, and seems to run fine.
&lt;br&gt;&lt;br&gt;When I make mod_perl, I get this error:
&lt;br&gt;&lt;br&gt;/usr/bin/ld: /usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a(gv.o): 
&lt;br&gt;relocation R_X86_64_32 against `a local symbol' can not be used when making a 
&lt;br&gt;shared object; recompile with -fPIC
&lt;br&gt;/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a: could not read 
&lt;br&gt;symbols: Bad value
&lt;br&gt;collect2: ld returned 1 exit status
&lt;br&gt;&lt;br&gt;If I'm building Perl explicity with -fPIC, why does mod_perl think I'm not?
&lt;br&gt;&lt;br&gt;I suppose I can live with 5.8.8, but there should be a way to build this.
&lt;br&gt;&lt;br&gt;Dan
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mod_perl-compilation-problem-tp19248291p19248291.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19228485</id>
	<title>mp2, STDIN/POST is clobbered by CGI-&gt;new($r);</title>
	<published>2008-08-29T15:35:13Z</published>
	<updated>2008-08-29T15:35:13Z</updated>
	<author>
		<name>Ashley-23</name>
	</author>
	<content type="html">Hello everybody.
&lt;br&gt;&lt;br&gt;I've got an access handler that is checking some arguments before &amp;nbsp;
&lt;br&gt;passing the request off with DECLINED or redirecting back to login/home.
&lt;br&gt;&lt;br&gt;The first version broke PHP forms that used POST by using this idiom &amp;nbsp;
&lt;br&gt;to check for arguments:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;my $cgi = CGI-&amp;gt;new($r);
&lt;br&gt;&lt;br&gt;CGI, I am guessing, reads STDIN for the POST args, emptying it &amp;nbsp;
&lt;br&gt;(eof'ing it?). So, when an authenticated request is DECLINED and PHP &amp;nbsp;
&lt;br&gt;is next in line, there is nothing to read and the $_POST is empty.
&lt;br&gt;&lt;br&gt;I realized I only needed to check GET args for the session info so &amp;nbsp;
&lt;br&gt;munging $r-&amp;gt;args is fine for my situation. Problem solved but now I'm &amp;nbsp;
&lt;br&gt;curious.
&lt;br&gt;&lt;br&gt;How could you read the POST body without clobbering it to hand off to &amp;nbsp;
&lt;br&gt;some PHP, or whatever is next in line? My CGI version in this &amp;nbsp;
&lt;br&gt;environment is 3.15.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;-Ashley
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/mp2%2C-STDIN-POST-is-clobbered-by-CGI-%3Enew%28%24r%29--tp19228485p19228485.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19227994</id>
	<title>Re: Virtual Directories</title>
	<published>2008-08-29T14:51:13Z</published>
	<updated>2008-08-29T14:51:13Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 4:26 PM, Will Fould &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19227994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;willfould@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Assuming my code can look in an existing database/memcache with the
&lt;br&gt;&amp;gt; requested URI segment, can someone suggest the lightest/fastest ways to
&lt;br&gt;&amp;gt; accomplish this or provide a decent link to a better discussion?
&lt;br&gt;&lt;br&gt;Some options:
&lt;br&gt;- mod_rewrite
&lt;br&gt;- PerlTransHandler
&lt;br&gt;- PerlResponseHandler that sends the actual file
&lt;br&gt;&lt;br&gt;If you can use mod_rewrite, that's the lightest option.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Virtual-Directories-tp19226933p19227994.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19227326</id>
	<title>RE: a require problem</title>
	<published>2008-08-29T13:55:26Z</published>
	<updated>2008-08-29T13:55:26Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">I'm running this:
&lt;br&gt;&lt;br&gt;&amp;nbsp;Apache/2.2.9 (Unix) mod_apreq2-20051231/2.6.0 mod_perl/2.0.4
&lt;br&gt;Perl/v5.10.0
&lt;br&gt;&lt;br&gt;This is not my biggest problem right now. &amp;nbsp;As you know, I'm still
&lt;br&gt;wrestling with problems associated with Parallel::ForkManager.
&lt;br&gt;&lt;br&gt;I'm going to put together a discrete test of this problem for
&lt;br&gt;demonstration purposes and get back to trying some different versions of
&lt;br&gt;apache, Perl and mod_perl to see if this bug was introduced at some
&lt;br&gt;point along the development path.
&lt;br&gt;&lt;br&gt;Eric
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19227326&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19227326&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt;] On 
&lt;br&gt;&amp;gt; Behalf Of Perrin Harkins
&lt;br&gt;&amp;gt; Sent: Friday, August 29, 2008 4:16 PM
&lt;br&gt;&amp;gt; To: Berg, Eric
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19227326&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt;; modperl perl apache org
&lt;br&gt;&amp;gt; Subject: Re: a require problem
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, Aug 29, 2008 at 3:43 PM, Berg, Eric 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19227326&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; For me, it's the same on both.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nevertheless, there have been problems in the past with GID. &amp;nbsp;Are you
&lt;br&gt;&amp;gt; running the latest mod_perl, and perl 5.8.8 or later? &amp;nbsp;See this for
&lt;br&gt;&amp;gt; background:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://marc.info/?l=apache-modperl&amp;m=117922708110568&amp;w=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://marc.info/?l=apache-modperl&amp;m=117922708110568&amp;w=2&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Perrin
&lt;br&gt;&amp;gt; 
&lt;/div&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19227326.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19226933</id>
	<title>Virtual Directories</title>
	<published>2008-08-29T13:26:39Z</published>
	<updated>2008-08-29T13:26:39Z</updated>
	<author>
		<name>Will Fould</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Hello - &lt;br&gt;&lt;br&gt;This has got to be very common:&lt;br&gt;&lt;br&gt;I&amp;#39;ve got a list of directories:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://www.example.com/foo&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/foo&lt;/a&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://www.example.com/bar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/bar&lt;/a&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://www.example.com/...&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/...&lt;/a&gt;..&lt;br&gt;&lt;br&gt;These directories don&amp;#39;t exist in the web root but map to the real location on the file system:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/customers/12345&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/customers/12346&lt;br&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/customers/.....&lt;br&gt;&lt;br&gt;... (location determined by a database/memcached lookup).&lt;br&gt;&lt;br&gt;Assuming my code can look in an existing database/memcache with the requested URI segment, can someone suggest the lightest/fastest ways to accomplish this or provide a decent link to a better discussion?&lt;br&gt;
&lt;br&gt;&lt;br&gt;Thanks in advance!!&lt;br&gt;&lt;/div&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Virtual-Directories-tp19226933p19226933.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19226740</id>
	<title>Re: a require problem</title>
	<published>2008-08-29T13:16:24Z</published>
	<updated>2008-08-29T13:16:24Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 3:43 PM, Berg, Eric &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19226740&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; For me, it's the same on both.
&lt;br&gt;&lt;br&gt;Nevertheless, there have been problems in the past with GID. &amp;nbsp;Are you
&lt;br&gt;running the latest mod_perl, and perl 5.8.8 or later? &amp;nbsp;See this for
&lt;br&gt;background:
&lt;br&gt;&lt;a href=&quot;http://marc.info/?l=apache-modperl&amp;m=117922708110568&amp;w=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://marc.info/?l=apache-modperl&amp;m=117922708110568&amp;w=2&lt;/a&gt;&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19226740.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19226782</id>
	<title>RE: a require problem</title>
	<published>2008-08-29T13:15:40Z</published>
	<updated>2008-08-29T13:15:40Z</updated>
	<author>
		<name>Niels Larsen-3</name>
	</author>
	<content type="html">What does 'file $cmd' (the gnu file program) say? is -e true
&lt;br&gt;under mod_perl? I'm out of ideas, but if you are certain its not
&lt;br&gt;due to different Apache configuration, then maybe sifting though
&lt;br&gt;strace output would be worth trying .. and i'm new to mod_perl
&lt;br&gt;anyway. Good luck. My errors are often obvious and found right
&lt;br&gt;in the places where I am not looking.
&lt;br&gt;&lt;br&gt;Niels L
&lt;br&gt;&lt;br&gt;&amp;gt; For me, it's the same on both.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What could be the problem here? &amp;nbsp;How can we take the next steps in
&lt;br&gt;&amp;gt; debugging this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ERic
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19226782.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19226291</id>
	<title>RE: a require problem</title>
	<published>2008-08-29T12:43:28Z</published>
	<updated>2008-08-29T12:43:28Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">For me, it's the same on both.
&lt;br&gt;&lt;br&gt;What could be the problem here? &amp;nbsp;How can we take the next steps in
&lt;br&gt;debugging this?
&lt;br&gt;&lt;br&gt;ERic 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19226291&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19226291&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niels@...&lt;/a&gt;] 
&lt;br&gt;&amp;gt; Sent: Friday, August 29, 2008 3:01 PM
&lt;br&gt;&amp;gt; To: Berg, Eric
&lt;br&gt;&amp;gt; Cc: modperl perl apache org
&lt;br&gt;&amp;gt; Subject: RE: a require problem
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could it be that during forking a different effective user id is
&lt;br&gt;&amp;gt; set, which is what -x checks? are $&amp;lt;, $&amp;gt;, $( and $) all the same
&lt;br&gt;&amp;gt; under cgi and mod_perl?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (it sounds like /usr/bin/rcsdiff is not a symbolic link, which
&lt;br&gt;&amp;gt; could be treated differently maybe, followsymlinks, etc)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Niels L
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The mod_perl server and the CGI server are the same. &amp;nbsp;It's just a
&lt;br&gt;&amp;gt; &amp;gt; handler configured for CGI's for *.cgi and mod_perl for 
&lt;br&gt;&amp;gt; *.pl, and I've
&lt;br&gt;&amp;gt; &amp;gt; symlinked from a .pl to the .cgi.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The web server for CGI and mod_perl and the command line 
&lt;br&gt;&amp;gt; run were all
&lt;br&gt;&amp;gt; &amp;gt; done as the same user.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Code like this:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; warn &amp;quot;$cmd is &amp;quot; . (-x $cmd ? &amp;quot;&amp;quot; : &amp;quot; not&amp;quot;) .&amp;quot; EXECUTABLE\n&amp;quot; ;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; warn `ls -l $cmd`;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yields this under mod_perl:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; /usr/bin/rcsdiff is &amp;nbsp;not EXECUTABLE
&lt;br&gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; and this from the command line and
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; /usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; and in a CGI:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; /usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Same server, CGI vs mod_perl, different behavior.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Probably not permissions. &amp;nbsp;But what?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Eric
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19226291.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19225683</id>
	<title>RE: a require problem</title>
	<published>2008-08-29T12:01:05Z</published>
	<updated>2008-08-29T12:01:05Z</updated>
	<author>
		<name>Niels Larsen-3</name>
	</author>
	<content type="html">Could it be that during forking a different effective user id is
&lt;br&gt;set, which is what -x checks? are $&amp;lt;, $&amp;gt;, $( and $) all the same
&lt;br&gt;under cgi and mod_perl?
&lt;br&gt;&lt;br&gt;(it sounds like /usr/bin/rcsdiff is not a symbolic link, which
&lt;br&gt;could be treated differently maybe, followsymlinks, etc)
&lt;br&gt;&lt;br&gt;Niels L
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The mod_perl server and the CGI server are the same. &amp;nbsp;It's just a
&lt;br&gt;&amp;gt; handler configured for CGI's for *.cgi and mod_perl for *.pl, and I've
&lt;br&gt;&amp;gt; symlinked from a .pl to the .cgi.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The web server for CGI and mod_perl and the command line run were all
&lt;br&gt;&amp;gt; done as the same user.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Code like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; warn &amp;quot;$cmd is &amp;quot; . (-x $cmd ? &amp;quot;&amp;quot; : &amp;quot; not&amp;quot;) .&amp;quot; EXECUTABLE\n&amp;quot; ;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; warn `ls -l $cmd`;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yields this under mod_perl:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /usr/bin/rcsdiff is &amp;nbsp;not EXECUTABLE
&lt;br&gt;&amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and this from the command line and
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;&amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and in a CGI:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;&amp;gt; -rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Same server, CGI vs mod_perl, different behavior.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Probably not permissions. &amp;nbsp;But what?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Eric
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19225683.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19225655</id>
	<title>Re: a require problem</title>
	<published>2008-08-29T11:59:08Z</published>
	<updated>2008-08-29T11:59:08Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 2:04 PM, Berg, Eric &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19225655&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; The mod_perl server and the CGI server are the same.
&lt;br&gt;&lt;br&gt;Even so, CGI is often configured to execute the script as the owner of
&lt;br&gt;the file, rather than as the user running the web server, so make sure
&lt;br&gt;you really are the same user.
&lt;br&gt;&lt;br&gt;&amp;gt; Probably not permissions. &amp;nbsp;But what?
&lt;br&gt;&lt;br&gt;Well, ultimately, it is permissions. &amp;nbsp;I remember some discussions a
&lt;br&gt;while back on the list about gid possibly not being set correctly by
&lt;br&gt;mod_perl. &amp;nbsp;You might look that up in the archives. &amp;nbsp;You might also try
&lt;br&gt;checking your real and effective uid and gid under CGI and mod_perl.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19225655.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19224831</id>
	<title>RE: a require problem</title>
	<published>2008-08-29T11:04:44Z</published>
	<updated>2008-08-29T11:04:44Z</updated>
	<author>
		<name>Berg, Eric</name>
	</author>
	<content type="html">The mod_perl server and the CGI server are the same. &amp;nbsp;It's just a
&lt;br&gt;handler configured for CGI's for *.cgi and mod_perl for *.pl, and I've
&lt;br&gt;symlinked from a .pl to the .cgi.
&lt;br&gt;&lt;br&gt;The web server for CGI and mod_perl and the command line run were all
&lt;br&gt;done as the same user.
&lt;br&gt;&lt;br&gt;Code like this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; warn &amp;quot;$cmd is &amp;quot; . (-x $cmd ? &amp;quot;&amp;quot; : &amp;quot; not&amp;quot;) .&amp;quot; EXECUTABLE\n&amp;quot; ;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; warn `ls -l $cmd`;
&lt;br&gt;&lt;br&gt;Yields this under mod_perl:
&lt;br&gt;&lt;br&gt;/usr/bin/rcsdiff is &amp;nbsp;not EXECUTABLE
&lt;br&gt;-rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&lt;br&gt;and this from the command line and
&lt;br&gt;&lt;br&gt;/usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;-rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&lt;br&gt;and in a CGI:
&lt;br&gt;&lt;br&gt;/usr/bin/rcsdiff is &amp;nbsp;EXECUTABLE
&lt;br&gt;-rwxr-xr-x &amp;nbsp;1 root root 49388 Sep 21 &amp;nbsp;2004 /usr/bin/rcsdiff
&lt;br&gt;&lt;br&gt;Same server, CGI vs mod_perl, different behavior.
&lt;br&gt;&lt;br&gt;Probably not permissions. &amp;nbsp;But what?
&lt;br&gt;&lt;br&gt;Eric
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19224831&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19224831&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pharkins@...&lt;/a&gt;] On 
&lt;br&gt;&amp;gt; Behalf Of Perrin Harkins
&lt;br&gt;&amp;gt; Sent: Friday, August 29, 2008 1:35 PM
&lt;br&gt;&amp;gt; To: Berg, Eric
&lt;br&gt;&amp;gt; Cc: Sean Davis; Jeff Pang; modperl perl apache org
&lt;br&gt;&amp;gt; Subject: Re: a require problem
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, Aug 29, 2008 at 1:23 PM, Berg, Eric 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19224831&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; The really weird thing is that when run in a CGI context, 
&lt;br&gt;&amp;gt; the -x test
&lt;br&gt;&amp;gt; &amp;gt; works as expected, but when called when running as a 
&lt;br&gt;&amp;gt; mod_perl2 registry
&lt;br&gt;&amp;gt; &amp;gt; script, it returns false, even though the file (that does exist) is
&lt;br&gt;&amp;gt; &amp;gt; executable by everyone. &amp;nbsp;Change it back to CGI (not 
&lt;br&gt;&amp;gt; mod_perl) and the
&lt;br&gt;&amp;gt; &amp;gt; same code does work properly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's still most likely a permissions issue. &amp;nbsp;I'd suggest trying to
&lt;br&gt;&amp;gt; execute it as the user who your mod_perl server runs as.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Perrin
&lt;br&gt;&amp;gt; 
&lt;/div&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;This message is intended only for the personal and confidential use of the designated recipient(s) named above. &amp;nbsp;If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. &amp;nbsp;This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. &amp;nbsp;Email transmission cannot be guaranteed to be secure or error-free. &amp;nbsp;Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. &amp;nbsp;All information is subject to change without notice.
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;IRS Circular 230 Disclosure:
&lt;br&gt;Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19224831.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19224397</id>
	<title>Re: a require problem</title>
	<published>2008-08-29T10:35:25Z</published>
	<updated>2008-08-29T10:35:25Z</updated>
	<author>
		<name>Perrin Harkins</name>
	</author>
	<content type="html">On Fri, Aug 29, 2008 at 1:23 PM, Berg, Eric &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19224397&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eric.berg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; The really weird thing is that when run in a CGI context, the -x test
&lt;br&gt;&amp;gt; works as expected, but when called when running as a mod_perl2 registry
&lt;br&gt;&amp;gt; script, it returns false, even though the file (that does exist) is
&lt;br&gt;&amp;gt; executable by everyone. &amp;nbsp;Change it back to CGI (not mod_perl) and the
&lt;br&gt;&amp;gt; same code does work properly.
&lt;br&gt;&lt;br&gt;It's still most likely a permissions issue. &amp;nbsp;I'd suggest trying to
&lt;br&gt;execute it as the user who your mod_perl server runs as.
&lt;br&gt;&lt;br&gt;- Perrin
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/mod_perl---General-f190.html&quot; embed=&quot;fixTarget[190]&quot; target=&quot;_top&quot; &gt;mod_perl - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/a-require-problem-tp19220464p19224397.html" />
</entry>

</feed>
