RE: Apache Subprocess

2007-06-28 Thread khan.sajid
Hi Scott, The program itself is not invoked, I tried with some other as you mentioned but no luck, In short Apache SubProcess is not working for me, Even the example that's mentioned in the website, May be I am missing something very basic, Any help?? Thanks, -Original Message- From:

RE: Apache Subprocess

2007-06-22 Thread khan.sajid
Hi Scott, I do not see anything in error log, The print line before and after the command also works fine,The webserver has permission to run the command since I can execute the same command using backtick like `/tmp/in_out_err.pl` Do we need to configure anything so that apache can start executi

RE: Apache Subprocess

2007-06-21 Thread khan.sajid
Any reply on this, I am literally struct. Please let me know your ideas -Sajid Hi Folks, I was trying in the lines of below code from http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html . # write to/read from the process $command = "/tmp/in_out_err.pl"; ($in_fh, $out_fh, $e

Apache Subprocess

2007-06-20 Thread khan.sajid
Hi Folks, I was trying in the lines of below code from http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html. # write to/read from the process $command = "/tmp/in_out_err.pl"; ($in_fh, $out_fh, $err_fh) = $r->spawn_proc_prog($command); print $in_fh "hello\n"; $output = read_dat

mod perl version

2007-06-20 Thread khan.sajid
Hi Folks, How will I find which mod perl version I am using, I am using Apache 2.0 so I believe it should be mod perl 2 but is there any way to confirm this Thanks, The information contained in this electronic message and any attachments to this message are intended for the exclusive

open2 does not work in mod perl

2007-06-14 Thread khan.sajid
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 reache

RE: Reading PerlSetVar in mod_perl2

2006-10-25 Thread khan.sajid
Thanks again for the reply > 1.This was not happening in apache 1.3, Is there any apache 2 > documentation which mentions this behaviour >>http://httpd.apache.org/docs/2.0/sections.html >>"Later sections override earlier ones." This does not differentiate the behaviour from apac

RE: Reading PerlSetVar in mod_perl2

2006-10-23 Thread khan.sajid
Thanks Philips for the reply >>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, but both the handlers are still called, however merging the Location works but is there any docume

RE: Reading PerlSetVar in mod_perl2

2006-10-19 Thread khan.sajid
Thanks Perrin for the reply, >Most likely you are not actually in the Location block that you think you're in I am on the same Location block >here's probably something wrong with another part of your conf file which is preventing the request from actually being >>handled by this block. May be,

Reading PerlSetVar in mod_perl2

2006-10-18 Thread khan.sajid
Hi All,   I asked the same question before but with not much help so I am asking it again, The below configuration is added to a configuration file and that is included in httpd.conf     SSLRequireSSL  SetHandler    perl-script  PerlHandler   Apache::Hello  PerlSetVar