Solved

Perl CGI with FrontPage and Win95

Posted on 1997-02-12
1
300 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form submit issue 11 86
pass a variable from a list to a batch file using psexec 11 64
Grunt script for Build Process 1 43
AWK: digits < 10 add a zero how? 11 26
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

828 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