Solved

execute cgi from file://

Posted on 1998-06-25
6
172 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

860 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