T
Tom Salzmann
I have developed some perl code to run as a script under Windows 2000
running apache. This works GREAT on Win2k but on WinNT, perl is simply
unable to launch the program. The program works fine from the command line.
Here's the code:
$fred=time . ".out" ;
open(OUTPUT, "|imon.bat " . $fred . " " . $ENV{'REMOTE_ADDR'} . " " .
$IMCommand . " " . $IMFile );
close OUTPUT;
open(FILE, $fred );
@htmlLines = <FILE>;
close FILE ;
unlink($fred);
unlink($IMFile);
As a test to make sure I wasn't nuts, I put the following in the bat file:
ECHO >> echo.out
And sure enough, I get "ECHO IS ON" in the file every time I run from
command line. But when I run from Apache, I get NOTHING. It's as if Apache
is unable to launch the thing.
Again, this works FINE under Win2k but fails on WinNT - Any ideas? I tried
system() but I get the same thing.
Thanks,
Tom
running apache. This works GREAT on Win2k but on WinNT, perl is simply
unable to launch the program. The program works fine from the command line.
Here's the code:
$fred=time . ".out" ;
open(OUTPUT, "|imon.bat " . $fred . " " . $ENV{'REMOTE_ADDR'} . " " .
$IMCommand . " " . $IMFile );
close OUTPUT;
open(FILE, $fred );
@htmlLines = <FILE>;
close FILE ;
unlink($fred);
unlink($IMFile);
As a test to make sure I wasn't nuts, I put the following in the bat file:
ECHO >> echo.out
And sure enough, I get "ECHO IS ON" in the file every time I run from
command line. But when I run from Apache, I get NOTHING. It's as if Apache
is unable to launch the thing.
Again, this works FINE under Win2k but fails on WinNT - Any ideas? I tried
system() but I get the same thing.
Thanks,
Tom