Solved

execute cgi from file://

Posted on 1998-06-25
6
164 Views
Last Modified: 2013-12-25
I need to be able to have perl CGI scripts executed from a local network rather than from the WWW. So the user would enter "file://..." on Unix or "file:C|\..." on Windows to start the path of the script rather than "http://..". The problem is that in Netscape, a window pops up that asks the user whether they want to save the file of type "application/x-perl". I want the user to be able to run that script so that they can have the interface of Netscape to run a script that will do something. And I don't want each user to have to modify their helper applications preferences. Of course, I also don't want the perl script to be displayed as plain text on the browser. I tried both text/plain as well as text/html as content types. Maybe I'm using them wrong???
0
Comment
Question by:Pakman
6 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1829966
You need a web server to run CGI scripts, even locally.

-julio
0
 
LVL 2

Accepted Solution

by:
johnny99 earned 150 total points
ID: 1829967
Well, yes and no, you need the PERL program to run PERL scripts and you should be able to download a version of it for whatever platform you're on: but to have it return HTML to Netscape, yes, you need a web server.

However if you've got Windows NT servers, you should be able to set up a directory as an Intranet web server, and this is also possible with Mac servers of course.

Short answer: *can't* be done without a Web Server, *can* be done without the Internet.
0
 

Author Comment

by:Pakman
ID: 1829968
The script does exist on a web server. If I pull it up as http://somedomain/script.pl, it executes. But if I run it as file://path/script.pl it pops up the 'Unknown File Type' dialog box. It is on a Unix Apache web server.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 5

Expert Comment

by:julio011597
ID: 1829969
johnny the question-locker - among other interesting things - wrote:

> However if you've got Windows NT servers, you should be able to set up a
> directory as an Intranet web server

There are public domain web servers even for Win95.

While Packman revealed:

>  If I pull it up as http://somedomain/script.pl, it executes

So, why would you call it through "file:"? As said, CGI scripts need web servers, and web servers are also known as *http* servers...

-julio
0
 

Author Comment

by:Pakman
ID: 1829970
johnny99 said:
> Short answer: *can't* be done without a Web Server, *can* be done without the Internet.

Well, how can it be done without the Internet? It must not go out on the Internet.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1829971
With a local web server on your machine.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
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…
The viewer will learn how to dynamically set the form action using jQuery.

914 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

21 Experts available now in Live!

Get 1:1 Help Now