> I'm new to Linux and X Windows.
> I can't get netscape to run perl scripts. The scripts are located on
> my machine and I am not connected to any server. The scripts work fine
> when run from the command prompt or XTerm. But when activated thru
> netscape (like with a form post), netscape just shows the contents of
> the script file. Pleez help!
Since you are running one of the finest operating systems ever made,
go get yourself NCSA's httpd Web Server, install it, and run it.
Then put your perl scripts in the cgi-bin directory
(or in the htdocs directory if you get 1.5.x or higher)
and your perl scripts will then run fine.
The reason why you get the contents is that the default viewing mode
for Netscape is just to read ascii.
However, when they are handled by a server, the server will recognize
that they are CGI scripts and then pipe the data to the script as
STDIN and then output onto the browser's screen what the output of
the script is. Get it?
So go get yourself a web server... Try:
They even have a feature which compiles and configures everything
for you right on the spot. Check it out!
BTW, if you are running RedHat 2.1, you already have the Apache
server installed and running. You just need to modify the
configuration files in /etc/httpd
and then install your perl scripts into /home/httpd/cgi-bin or
/home/httpd/html (although you'll have to enable the magic
file type .cgi to do this...)
If you have any more questions, feel free to email me at