Solved

execute cgi from file://

Posted on 1998-06-25
6
176 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
[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
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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

738 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