Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Accessing cron job output from a web page?

by Paladin (Priest)
on Apr 19, 2006 at 22:06 UTC ( #544461=note: print w/replies, xml ) Need Help??

in reply to Re^2: Accessing cron job output from a web page?
in thread Accessing cron job output from a web page?

I had that thought with one of my pages. I take the middle road. Have the script check the age of the HTML file, and if it's more than X minutes old, recreate it from the log files, otherwise just show it. It saves CPU and time when many people are viewing the page at the same time, but still gives you almost current data.
  • Comment on Re^3: Accessing cron job output from a web page?

Replies are listed 'Best First'.
Re^4: Accessing cron job output from a web page?
by traveler (Parson) on Apr 19, 2006 at 22:26 UTC
    Kinda depends on how many users and how often they look. In my case I had fewer than ten users, but some looked every few minutes. At the end of the project, the page was set to do automatic refreshing because we had one user (these were project administrators) checking the logs every few seconds. With the refresh he was convinced it was "real time" :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://544461]
marioroy updated Re: How to convert bunch of perl file + other dependent Input files Into a single executable. Unfortunately, PAR::Packer or dependency isn't multi-process or threads safe. But is possible to build an exe running MCE::Hobo.
marioroy Supporting the Windows platform isn't easy. ;-(
marioroy I tried to find the culprit module with unsafe DESTROY or END block, but too many dependencies and gave up.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-08-24 03:06 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (363 votes). Check out past polls.