Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: OWS and Perl on NT
Steve Phelan wrote:
>
> Terje A. Bergesen wrote:
>
> > Hello there, and sorry if the question has been answered
> > before.
> >
> > I have set up an NT server with OWS 2.1. I have also made
> > a directory mapping to a /cgi-bin/ directory so that I can
> > run some of my old CGI's (and maybe one or two new ones).
> > It seems I can't run Perl based CGI's though. I have set
> > up Perl for NT, and .pl is associated with perl.exe, so it
> > is possible to do test.pl from the command line, and have
> > the perl program run. Is there anything extra I need to do
> > in order for OWS to run the perl script? It rund *.bat, *.exe
> > and *.cmd files, so...
> >
>
> Have you got a 'content-type' line in your script?
>
> You will need something like:
>
> print "content-type: text/plain", "\n\n";
Sure thing. I have a directory mapped to /cgi-bin/ in the Oracle 2.1 setup. In the directory I have two files:
---test.bat---
@echo off
echo text/html
echo Hello
---test.pl---
print "text/html\n\n";
print Hello
The first gives me the expected result, the second gives me: The requested URL was not found.
---Terje Received on Mon Apr 21 1997 - 00:00:00 CDT