Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2721
  • Last Modified:

Can't open perl script: ????????? Invalid argument

when i try to execute a perl script on iis4.0 and NT4.0 ws i get the following answer:

Can't open perl script: ????????? Invalid argument

What am i doing wrong?

When i execute a perl scrip direct from the commandline everything works fine!

Thanx in advance.
0
thommy1
Asked:
thommy1
  • 3
  • 2
1 Solution
 
greCommented:
give some more info about the script.
are you passing it arguments?
are the file permissions set correctly?
do you have IIS map the .pl extension?
0
 
thommy1Author Commented:
The script is the example from Microsofts Knowledge Base:

print "HTTP/1.0 200 OK\n"; print "Content-Type: text/html\n\n";

print "<HTML>\n"; print "<HEAD>\n"; print "<TITLE>Hello World</TITLE>\n"; print "</HEAD>\n"; print "<BODY>\n"; print "<H4>Hello World</H4>\n"; print "<P>\n"; print "Your IP Address is $ENV{REMOTE_ADDR}.\n"; print "<P>"; print "<H5>Have a nice day</H5>\n"; print "</BODY>\n"; print "</HTML>\n";

i have maped HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ services\W3SVC\Parameters\ScriptMap

permissions are set for the complete directory.

0
 
greCommented:
I would make sure that the directory is mapped to a .pl
( I am assuming this is a .pl script)
in IIS Service Manager highlight 'Default Web Site'
go to the 'Action' pull down menu and click on 'Properties'
then click on the tab that says 'Home Directory'
click the button towards the bottom right 'Configuration'
you will now see a list of extensions and thier exe path.
check to make sure the .pl extension is in there.
if not you can add it:

pl      c:\your path to Perl exe...\Perl.exe %s %s


0
 
thommy1Author Commented:
Yes, now it works fine!

I've got the newest release from ActiveState Perl, and there the IIS is configured automatically.

It has done exactly the same changes as you told me.

Thanks again.
0
 
greCommented:
Glad to hear it's all working now.
I just got IIS myself a couple days ago and am now having problem with SSI's.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now