
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Unix tool to monitor files for changes
On 12/07/07, Chris BALUTA <baluta@example.com> wrote:
Josh asks:
> I need to monitor a set of directories and files for changes, and do
> something when a file changes.
Erm, I'm probably missing something here, but anyway...
Indeed you are. :)
make + cron should do this just fine.
I don't want to grab the changes made at an interval, even if that
interval is one minute; I want *every* single change to an inode.
The use case is this:
When someone writes a change to a file, I want to immediately "svn
commit" that file. This will result in lots of small revisions, but
the ability to go back to any revision.
I could also solve this with a revisioned filesystem, but that will be
difficult because I need to run on a RHEL3 machine on which I cannot
rebuild the kernel (or realistically, even build modules inside the
kernel tree). Plus, I *know* SVN, but do not have the time to learn a
new technology, i.e. the tools provided by the filesystem for
manipulating revisions.
--
Cheers,
Josh
Home |
Main Index |
Thread Index