Dave,
I don't know if you are running it from the command line or in the browser. Here are a few things to check:
*Make sure that IIS is running :Control Panel>Add/Remove programs>Add/Remove Windows Components>Indexing Service>Internet Information Services(IIS) options
*Make sure that you have permissions to run scripts in the given folder:Right click folder>Properties>Web Sharing/Share this folder>check Read, Script Source Access and check Scripts application button.
*File extension associations:C:>Tools>Folder Options>File Types>New>Type CGI>Advanced>Associate with Perl File>OK
*Associate Perl extensions w/perl interpreter to run scripts in browser: Choose Administrative Tools from Control panel>Computer Management>Services and Applications>Internet Information Services>Expand Default Web Site folder>Right click cgi-bin, click Properties>Click Virtual Directory tab if necessary and click the Configuration ... button. Scroll until you see the .pl extension info, click the Edit button and swlect the Script Engine option. Also deselect the Check that file exists option, if necessary. Click OK. Click the Add button. In the Executable box, type C:\Perl\bin\perl.exe "%s" %s. In the extension box type.cgi. Select the Limit to button, then type GET, HEAD, POST. If necessary selectScript Engine option. Click OK.Click OK.Click OK.
I know this is kind of lengthy, but it is a checklist I went through just a few days ago.
Regards,
Bill Cole
My Perl script below worked on Windows98 BUT now in WindowsXP it's
showing this error below...
Okay... I typed this path to my ni.pl xscript:
C:\Documents and Settings\Customer\Desktop\PageMakerNew\ni.pl
C:\Documents and Settings\Customer\Desktop\PageMakerNew\ni.pl
This is the error the command prompt said...
Can't open inputs/searchterms1.txt:No such file or directory at
C:\Documents and Settings\Customer\Desktop\PageMakerNew\ni.pl
line 166
C:\Documents and Settings\Customer\Desktop\PageMakerNew\ni.pl
line 166
<snip>
