Mithun Bhattacharya *EXTERN* wrote:
No offense meant but it is my personal opinion that SSI can mess up a
system worse than Perl ever could. Also the person who had initiated
this thread was using SSI to execute a third party application. I am not
sure why a system command would be worse
Mithun Bhattacharya *EXTERN* wrote:
Is there something in SSI which cant be done in a better way using Perl
??
Yes, giving authors a simple tool with which they can't mess around.
Perl is too powerful.
Peter
Thanks! This works for me, I don't have Apache::Filter loaded, but the
effect is the same.
My new code:
my $stdin = tied *STDIN;
my $stdout = tied *STDOUT;
untie *STDIN;
untie *STDOUT;
my $child = open3 ($cgi_in, $cgi_out, $cgi_error, $filename);
tie *STDIN, ref $stdin, $stdin;
tie *STDOUT, ref
My program, which worked under mod_perl/1.23 and perl5.500502 does not
work anymore:
I fork a program with Open3, send it some input and catch its output.
The output is OK, but the program does not get the input:
...
my $cgi_in = Apache::File-new;
my $cgi_out = Apache::File-new;
my