Solved

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

Posted on 1998-08-25
5
2,460 Views
Last Modified: 2011-09-20
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
Comment
Question by:thommy1
  • 3
  • 2
5 Comments
 

Expert Comment

by:gre
ID: 1204533
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
 

Author Comment

by:thommy1
ID: 1204534
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
 

Expert Comment

by:gre
ID: 1204535
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
 

Author Comment

by:thommy1
ID: 1204536
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
 

Accepted Solution

by:
gre earned 10 total points
ID: 1204537
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question