• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Perl with CGI?

 
Santiago Bravo
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Santiago Bravo
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CGI is for building dynamic sites. If the script generates static HTML pages, then there is no need for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic