perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Apache Subprocess
Date Fri, 22 Jun 2007 14:51:53 GMT

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
Do we need to configure anything so that apache can start executing the
Apache::SubProcess package ?

-----Original Message-----
From: Scott Gifford [] 
Sent: Thursday, June 21, 2007 11:32 PM
To: Sajid Khan (WT01 - Computing, Storage & Software Products)
Subject: Re: Apache Subprocess

Hi Khan,

<> writes:


> I was trying in the lines of below code from 
> api/Apache/SubProcess.html .
>   # write to/read from the process
>   $command = "/tmp/";
>   ($in_fh, $out_fh, $err_fh) = $r->spawn_proc_prog($command);
>   print $in_fh "hello\n";
>   $output = read_data($out_fh);
>   $error  = read_data($err_fh);

I've not used this particular function before, but a few ideas that
might help: Do you see anything in your error log?  If you put a print
line before and after running the command, do you see either of them?
Does the Web server user have permission to run the command?  Is
autoflush turned on for $in_fh?  Does the running program flush its
output immediately?

Good luck!


The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.

View raw message