[NTLUG:Discuss] perl cgi script question

Val Harris val.harris at attbi.com
Sat Mar 8 20:28:50 CST 2003


Geremy L. Hamlett wrote:
> One guestion,
> 
> I have a couple of cgi scripts coded in perl sitting on a website.  I
>  copied them back to my computer, that has no webserver running, and 
> tried to run the scripts.  I opened a browser and open the html file 
> that points to the script.  When I hit submit it just displays the 
> perl script in on the browser.  It dosn't execute the script.  Is 
> this due to the fact that I do not have a webserver running on my 
> home comp? or something more complicated?
> 
> Thanks, gnuzealot
> 
> _______________________________________________ 
> https://ntlug.org/mailman/listinfo/discuss
> 

CGI scripts are generally designed to run on the web server.  That said,
they are also Perl programs and can be called from a terminal command
line (if you have Perl installed).  If it's a simple program that
doesn't require back-end services from the web-server machine, it'll
probably output something that you can capture in a file and then view
with your browser.

Have fun,

Val
-- 
Val W. Harris            val.harris at attbi.com

"A lie gets halfway around the world before the
 truth has a chance to get its pants on."
 - Sir Winston Churchill





More information about the Discuss mailing list