Hello, fellow monks.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.