Thanks Ron,
I tried to associate the ext. .cgi to perl.exe just like .pl and remove the line
#!perl/bin/perl
from the .cgi file but it is not working. it gives the same error.
Vishal
"Wantock, Ron L." wrote:
> Unix systems use the #! line to determine how to interpret the remainder of
> the file. this allows you to give the file any extension you wish, and
> still have it associated with the correct parser/interpreter. Win32 systems
> on the other hand do not use the #! line in this fashion. Win32 uses file
> extension association to determine how to handle the file. During the
> installation of ActivePerl, the .pl to perl.exe is set up automatically by
> default. If you wish for the .cgi extension to also be associated with
> perl.exe you can add the association manually.
>
> refer to the Win32 FAQ 4 "Windows NT and Windows 95" - "How do I associate
> Perl scripts with perl?" for instructions on how to set up the association.
>
> HTH
>
> wantor
>
> > -----Original Message-----
> > From: v6h10p6 [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 28, 2000 4:58 AM
> > To: Perl-Win32-Users Mailing List
> > Subject: Running .cgi on win98 with pws
> >
> >
> > Hi!
> >
> > I am trying to run x.cgi on win98 running pws. I have
> > Activestate Perl
> > installed in my c:\perl. to run the x.cgi file i have my index.shtml
> > pointing to the x.cgi file located in c:/inetpub/cgi(active
> > directory as
> > cgi) by
> >
> > <!--#exec cgi="/cgi/x.cgi"-->
> >
> > my x.cgi is a Hello World example with first line
> >
> > #!/perl/bin/perl
> >
> > my perl.exe is located in C:\perl\bin directory.
> > when i tried to load my index.shtml it gave me this error:
> > "Failed to execute script '/cgi/x.cgi': Win32 Error Code = 16389"
> >
> > Then i renamed the x.cgi file to x.pl and made changes in
> > index.shtml to
> > <!--#exec cgi="/cgi/x.pl"-->
> >
> > It worked fine.
> >
> > Does any one know what might be a problem?
> >
> > Please reply.
> >
> > VHP
> > [EMAIL PROTECTED]
> >
> > ---
> > You are currently subscribed to perl-win32-users as:
> > [EMAIL PROTECTED]
> > To unsubscribe, forward this message to
> > [EMAIL PROTECTED]
> > For non-automated Mailing List support, send email to
> > [EMAIL PROTECTED]
> >
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]