in reply to Accessing cron job output from a web page?
A more general solution might be to write an event logging module and 'use' it in all your scripts. Then any time something 'happens' you can invoke an API in that event-logging module and log it to a file (or better yet, a relational database). Hey, presto, you've got a decent historical picture of what has been happening. You can write the CGI script that presents the 'current picture' once and make it configurable/filterable for various slices of the event log.
Or you could stick with your cron log-sweeping idea, especially if you have a lot of shell scripts. The above is just an idea that popped into my head, and may not be well-thought-out. Take it or leave it. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing cron job output from a web page?
by OfficeLinebacker (Chaplain) on Apr 19, 2006 at 22:04 UTC | |
by ptum (Priest) on Apr 20, 2006 at 17:45 UTC |