C
chrisgeorgeoliver
Hi,
I'm in the process of moving my sites from an old server (Windows
Server 2000 IIS 5, Active Perl 5.6.1633) to a new server (Windows
Server 2k3 IIS 6, Active Perl 5.8).
Most scripts work, but i run into a problem when i run this:
$command = "mrsid_info.exe ../$client/$image |";
$rc = open (COMMAND, $command);
if (!$rc)
{
return;
}
while (<COMMAND>)
{
if (/\s*levels = (\d+)/) { $levels = $1 + 1; }
if (/\s*width = (\d+)/) { $width = $1; }
if (/\s*height = (\d+)/) { $height = $1; }
}
close (COMMAND);
It seems like it never runs the exe because the $levels, $width, and
$height are never assigned. Is there something in IIS 6 that prevents
scripts from running exes? I have givin Everyone full access to the
directory with the script, along with full access on the perl
directory.
I created a quick helloworld.exe that outputted a string. I then wrote
a quick perl script (titled 'tester.plx') that opened helloworld.exe
and printed out the output. It worked fine in command prompt, but not
through the browser.
I am a complete perl newbie so please be descriptive with your
responses.
Thank you for your time in advance.
I'm in the process of moving my sites from an old server (Windows
Server 2000 IIS 5, Active Perl 5.6.1633) to a new server (Windows
Server 2k3 IIS 6, Active Perl 5.8).
Most scripts work, but i run into a problem when i run this:
$command = "mrsid_info.exe ../$client/$image |";
$rc = open (COMMAND, $command);
if (!$rc)
{
return;
}
while (<COMMAND>)
{
if (/\s*levels = (\d+)/) { $levels = $1 + 1; }
if (/\s*width = (\d+)/) { $width = $1; }
if (/\s*height = (\d+)/) { $height = $1; }
}
close (COMMAND);
It seems like it never runs the exe because the $levels, $width, and
$height are never assigned. Is there something in IIS 6 that prevents
scripts from running exes? I have givin Everyone full access to the
directory with the script, along with full access on the perl
directory.
I created a quick helloworld.exe that outputted a string. I then wrote
a quick perl script (titled 'tester.plx') that opened helloworld.exe
and printed out the output. It worked fine in command prompt, but not
through the browser.
I am a complete perl newbie so please be descriptive with your
responses.
Thank you for your time in advance.