open2 does not work in mod perl

2007-06-13 Thread sajid khan
Hi all I am able to execute the below program in perl but NOT in mod_perl $pid = open2(*Reader,*Writer,$test_cmd); Writer->autoflush(); Reader->autoflush(); print Writer "mypwd\n"; while () { $output .= $_; } In mod perl , whatever I write to Writer using "print Writer " does not get reached t

Re: Reading PerlSetVar in mod_perl2

2006-10-24 Thread sajid khan
I would really appreciate any replies for the below Thanks in AdvanceOn 10/24/06, sajid khan <[EMAIL PROTECTED]> wrote: Hi Philip,   I already replied to this thread, since I dont see my posting I am replying it again   >>Last location directive wins for the same location is why.

Re: Reading PerlSetVar in mod_perl2

2006-10-23 Thread sajid khan
Hi Philip,   I already replied to this thread, since I dont see my posting I am replying it again   >>Last location directive wins for the same location is why.  This is an httpd thing having >>nothing to do with mod_perl I see that last Location directive is winning, I have 2 questions regarding t

Re: Reading PerlSetVar in mod_perl2

2006-10-21 Thread sajid khan
Perrin, Regarding your questions >>What does $r->location() tell you?  Make sure you are loading >>Apache2::RequestUtil. $r->location() returns the same mapping /someurl and I am loading the Apache2::RequestUtil. One more thing I need to convey, infact I have two location block for same mapping

Re: Location directive in httpd.conf

2006-09-25 Thread sajid khan
looking or missing anything, I am not able to read the "somevar" from the handler in apache 2ThanksOn 9/22/06, Fred Moyer <[EMAIL PROTECTED]> wrote: On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote:> I asked the below question in apache user group as well, but with no> answers>>

Location directive in httpd.conf

2006-09-21 Thread sajid khan
I asked the below question in apache user group as well, but with no answersWe have 2 location directives, one for all the requests ( ... ) and one for specific url . We declare some variables using PerlSetVar inside those and read from the perl scripts. In Apache 1.3 , I am able to read the varia