A coworker has set up a novel way to track the execution of cron jobs (which we use extensively in RedHat Enterprise v4).
The desired command's output is directed to a file of the form basename-date:hh:mm.uid.log in a certain directory. Then, every 5 minutes, another cron job (in Perl) scans said directory for all files 5 days old or younger, converts them to HTML, and posts the logs as web pages.
The main page is split up into 5 users, and eash user's page lists the history of all cron jobs run in the past 5 days.
The point is to not get lots of email every day, but still be able to see how your cron jobs went.
It also does some basic error checking.
We're planning on writing some improvements, such as sending an email if the program detects an error, and even checking if the job has "run too long," in which case an email can also be sent.
I'd like to ask The Monks if they know of any other similar implementations before we start improving a wheel that perhaps has already been invented.
TIA
In reply to Accessing cron job output from a web page? by OfficeLinebacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |