dawnamarr has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Looking for a script
by footpad (Abbot) on Oct 15, 2001 at 22:21 UTC

    Probably, though I can't think of one immediately; however, it should be pretty easy to build one yourself, though. You'd probably want to:

    • Use File::Find to discover the documents in the public HTML tree.
    • Use stat to get the file's mtime
    • Compare the file's mtime to one saved from a previous session.
    • Save each appropriate filename in an array or a hash
    • Use Mail::SendMail, MIME::Lite, or some other related module to compose and send the message.

    As an alternative to the last one, you could create a cron job to review the files at some unearthly hour of the morning and then print the changed files to STDOUT. (According the the friendly manual, cron sends that to you as an email.)

    (That presumes you're using a Unix box--or have installed an appropriate cron alternative if you're using some other OS.)

    Of course, other alternatives are available. Just super search or review various repositories of Perl wisdom.

    --f