perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Gifford <sgiff...@suspectclass.com>
Subject Re: Apache Subprocess
Date Thu, 21 Jun 2007 18:02:15 GMT
Hi Khan,

<khan.sajid@wipro.com> writes:

[...]

> 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_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!

----Scott.

Mime
View raw message