Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Perl on Win NT

Status
Not open for further replies.

JohnStep

Programmer
Apr 19, 2000
190
US

I want to test a Perl Script on NT Server. How can I run the script through the browser. Basically, After I have installed Active Perl on my system , it paths out correctly through perl.exe. How can I test the script on my browser. I have NT's IIS running so I have a HTML server running. As well I have tested it on Analog X's with no avail. What happens is I try to run the script and the Command box opens up on the screen and displays some information very quickly and then closes. Now how may I see the script , or any script through the browser properly as you would from a web site???

Thanks in Advance,

John Stephens
[sig][/sig]
 
I am using IIS 4.0, When I run the script from the command box it runs and sets up the folders in my base directory so I know the script is running and Perl is pathed correctly.
When I url it through LocalHost it will try to open the file as if it were Downloading it. A box will ask me to specify a location for the file. If I instruct it to open it from its current location it will open the Commandbox and run it through there. I can see the <HTML> etc. As well it opens the folders correctly. It just won't run any script through the browser normally.

As for my Perl location I have it in script as follows:

#!D:/Perl/Bin/Perl

I have checked permissions etc and they are all set.. It is probably something simple I am forgetting. And NT does recognize the PL extention and knows where to find the path or it would not open the Command Box instead of running through the Browser.

Any Help would be Appreciated

John
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top