> > $status = system "D:\\WINNT\\system32\\ipconfig.exe >
> D:\\Temp\\ip.txt";
> >
> > then it carries on fine under Apache (now re-directing the output to the
> "ip.txt"
> > file), but under Apache+mod_perl the $status gets set to 256, the "ip.txt"
> file is
> > not created and I get the error
> >
> > The handle could not be opened
> > during redirection of handle 1.
> >
> > in error.log
> >
> > What is it that changed between Apache 1.3.6 (which doesn't have this
> problem) and
> > Apache 1.3.12 which causes this to happen, and can mod_perl be changed to
> cope
> > with it?
>
> Hi Steve,
> I've tried this with the latest cvs mod_perl snapshot, like you
> use, with Perl 5.6.0 and Apache_1.3.12. I'm using Win98, with the
> 4DOS tools. As a cgi-bin script,
> my $status = "ipconfig > C:\\test.txt"
[I take it you meant 'my $status = system "ipconfig > C:\\test.txt";' here?!]
>
> returns $status = 0, and C:\test.txt capturing the output.
> As an Apache::Registry script, the same thing returns
> a status of 256 (with a DOS window briefly opening and
> closing), but I get C:\test.txt still capturing the output. So it
> may have something to do with the different DOS "shells"?
Eh? I don't believe the DOS "shell" changed between Apache 1.3.6 and Apache
1.3.12!!!!!!
The fact that you're running a different DOS "shell" to me does not explain the
problem: it only explains why your experience of the problem it slightly
different to mine.
It was changing from Apache 1.3.6 to Apache 1.3.12 which broke it -- my DOS
"shell" didn't change!
And did you get the line in the error.log?
Steve Hay