wood burning stoves 2.0*
The moose likes Perl and the fly likes Perl with CGI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Perl
Bookmark "Perl with CGI?" Watch "Perl with CGI?" New topic
Author

Perl with CGI?

Santiago Bravo
Ranch Hand

Joined: Jul 25, 2008
Posts: 226
Hi, ive created script which will gather data from some files and then post the data to a website. I have done the part where I get all the info I want from the files but unsure about how to get this on to my proposed website.

Im not sure where to use CGI for the website or something else. Can anyone suggest what is best? and also
a quick and easy way of doing this?


Many thanks

S.


Santiago
My Path to SCJP Certification My Path to SCWCD Certification
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42632
    
  65
Should this be done dynamically, or would it be sufficient to run the script every so often in the background (maybe as a cron job), and then have it copy static HTML pages that it generates to a public web directory?

If the former, then you'd need something like Apache with mod_perl to run the script on demand.


Ping & DNS - my free Android networking tools app
Santiago Bravo
Ranch Hand

Joined: Jul 25, 2008
Posts: 226
The script would run daily via a cron job yes. Then the stats it gets from the files I would like to put on a website.


So is CGI ok for this? or should I be using something else?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42632
    
  65
CGI is for building dynamic sites. If the script generates static HTML pages, then there is no need for it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Perl with CGI?