Solved

Perl CGI with FrontPage and Win95

Posted on 1997-02-12
1
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
tfiedler010897 earned 100 total points
ID: 1827625
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

734 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