Advanced

Automatically process new files with fsniper

Posted by Sander_Marechal on · 2 comments
Linux.com; By Ben Martin
Mail this story
Print this story

fsniper lets you monitor specified directories and execute scripts on any new files that are created in them. Because fsniper uses inotify to monitor its directories, the actions you define are executed as soon as filesystem changes happen. This makes fsniper both more immediate than an hourly cron job and more efficient. One possibility that suggests itself when you think about automatically processing files as they are placed in a directory is to have some sort of classification of files that you download from the Web. In fact, this is the first example that the fsniper Web site gives.

Full Story

  Nav
» Read more about: Story Type: Reviews; Groups: Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (2)

It sounds as if just using this as a wrapper around incrond would be a workaround for the lack of a recursive inotify function - I'll look at this and see if it does the trick...
Let me know how that goes. I'd love something that can do recursive inotify for my jukebox daemon. I'd like my jukebox to automatically update the song database when a new song file is put in the library directory.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post