the only suggestion I can give you is to make sure that the associations is
in fact there. Create a simple "hello world" perl script and save it as
'hi.cgi' (or any name as long as you use cgi as the extension). Then from
the command line type
hi.cgi
Do not put 'perl' in front of it, if the association has been made, the
operating system should recognize this as a perl script and run it through
the perl interpreter. If it doesn't work correctly, the association has not
been established. If it does work correctly, then I would guess is that
there is something within PSW that needs to be set to map the .cgi extension
to perl. I however have no knowledge of PSW and therefore would be of no
help to you there.
wantor
> -----Original Message-----
> From: vishal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 11:29 AM
> To: Perl-Win32-Users Mailing List
> Cc: Perl-Win32-Users Mailing List
> Subject: Re: Running .cgi on win98 with pws
>
>
> 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:
> [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: [[email protected]]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]