Hi Khan,

<[EMAIL PROTECTED]> 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.

Reply via email to