incron is teh cool.

Story: Scheduling jobs based on filesystem activity with incronTotal Replies: 2
Author Content
herzeleid

Aug 21, 2008
3:17 AM EDT
I looked at different ways of utilizing the inotify kernel interface for a requirement I had, namely to monitor directories on an vsftpd server for a customer who wanted notification whenever anything happened with files.

Of all the alternatives, incron was the least work - I just had to write some simple shell scripts to send the emails when fired off by incron. The other approaches all required having long running shell scripts or c programs and would have required more work and debugging to set something up.
Sander_Marechal

Aug 21, 2008
4:12 AM EDT
It sounds great, but it's too bad it doesn't work recursive. I'd love to be able to set a trigger on a single directory (e.g. my music collection) and have it fire an "mpc update" whenever anything inside there changes.
herzeleid

Aug 21, 2008
12:56 PM EDT
> It sounds great, but it's too bad it doesn't work recursive.

That's my only gripe with it...

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!