Solved

Perl CGI with FrontPage and Win95

Posted on 1997-02-12
1
296 Views
Last Modified: 2013-12-25
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
Comment
Question by:walkey
1 Comment
 

Accepted Solution

by:
tfiedler010897 earned 100 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scripting, exchange 35 38
Combine DSQuery result into loop script 6 37
Groovy:unable to resolve class error 2 28
Disk Ram Peak 1 13
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now