Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl will not run exe on Windows Server 2003

Reply
Thread Tools

Perl will not run exe on Windows Server 2003

 
 
chrisgeorgeoliver@gmail.com
Guest
Posts: n/a
 
      05-17-2005
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..

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.

 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      05-17-2005
wrote in news:1116350371.536667.238140
@g14g2000cwa.googlegroups.com:

> 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..
>
> Most scripts work, but i run into a problem when i run this:
>


use strict;
use warnings;

missing. Please read the posting guidelines for this group to see how
you can help yourself as well as helping others help you.

> $command = "mrsid_info.exe ../$client/$image |";
>
> $rc = open (COMMAND, $command);
>
> if (!$rc)
> {
> return;
> }

....

> It seems like it never runs the exe


And why not? How can we know? You could, of course, find out:

my $command = "mrsid_info.exe ../$client/$image";
open my $pipe, '-|', $command
or die "Cannot open pipe to read output of $command: $!";

> Is there something in IIS 6 that prevents scripts from running
> exes?


I don't know. That is something specific to the OS/Web Server
configuration you chose, and thus off-topic here.

> 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.


perldoc -q CGI

> I am a complete perl newbie so please be descriptive with your
> responses.


First off, I think you are referring to Perl.

Second, if you are a newbie, you should definitely read the posting
guidelines for this group.

Sinan
--
A. Sinan Unur <>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html
 
Reply With Quote
 
 
 
 
chrisgeorgeoliver@gmail.com
Guest
Posts: n/a
 
      05-17-2005
Thanks for the quick reply, Sinan.
Sorry for posting without reading the guidelines, I now realize I
violated quite a few rules. Although I must say I tried to find a
solution to my problem for the last 4 days before posting here.

I changed my open (COMMAND) line to the one you suggested and when I
pull up the page it just hangs. I'm pretty sure this is a permissions
problem of some kind because this code worked on IIS 5 and therefore,
I'll take this thread over there.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run 2 seperate w3wp.exe processes on Windows 2003 server Sriram Mallajyosula ASP .Net Security 1 02-07-2007 03:32 PM
IIS 6.0 do not run .asp pages under Windows 2003 server standart e Edinson ASP .Net Web Services 3 02-14-2005 03:41 PM
Windows 2003 Server or Exchange Server 2003 first????? Ozzie MCSA 1 11-30-2004 01:10 AM
Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged. windows 2003 server Claude seraphin ASP .Net 11 01-26-2004 09:17 PM
ASP page does not run on Windows Server 2003 Galaxy ASP General 9 09-05-2003 02:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57