Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: OWS and Perl on NT

Re: OWS and Perl on NT

From: Steve Phelan <stevep_at_pmcgettigan.demon.co.uk>
Date: 1997/04/21
Message-ID: <335B8B3B.84C4C427@pmcgettigan.demon.co.uk>#1/1

Terje A. bergesen wrote:

> 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

 Sorry, not quite sure if your second example is the *entire* file? Normally I would expect to see the name and location of the program which executes the script as the *first* line of the script. On UNIX, something like:

    #!/usr/local/bin/perl

This tells the Web Server which program to use to execute the script. Have you tried this?

Steve Phelan. Received on Mon Apr 21 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US