Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

Perl CGI with FrontPage and Win95

I am running FrontPage97 (although it happened with 1.1 as well) and Win95, and reading the resulting web with Netscape 3. I'm trying to link my own perl script onto a form defined with FrontPage. I can access the correct menu to input the name of the script, and from looking at the resulting HTML I know this works properly. The perl script itself does not generate any errors if I run it from an MSDOS command line.

The problem comes when trying to run this script using the "submit" button I have on the form. The FrontPage server doesn't seem to be able to recognize the file as a perl script to be run. The file has the extension .pl, and perl is on the search path. I've also tried making the action "perl.exe?getmarks.pl" with no success. Netscape either
can't find the file or won't run it, depending on whether
I put it in the cgi-bin directory.

o the question is this: what do I have to do to make the FrontPage server run a perl script? Microsoft has obviously acticipated doing this, since all the hooks are there, but for some reason I can't get a perl script to work.
0
walkey
Asked:
walkey
1 Solution
 
tfiedler010897Commented:
You will need to tell Frontpage that the extension pl is a cgi script and needs to be executed by the server. Typically, you do not include the perl.exe interp. in the command line. YOu would instead specify that the extension .pl is a cgi type and that the application that executes it is perl.exe.

You would have a link somewhat similar to this one: http://www.yourdomain.com/cgi-bin/getmarks.pl and inside your script you should have as the first line a string that looks like the following:
#/usr/bin/perl

All that remains is the association of the pl file extension with perl.exe. Unfortunately I do not know how frontpage does this association.

Netscape servers have a fairly good interface for enabling this activity. As well as UNIX.


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now