"Directory Watch" script
Posted: Tue Jan 09, 2007 11:50 am
This is just a quick post to hopefully get some suggestions and gauge the interest in a linux script I'm thinking of writing for AniDB. I've just recently finished rebuilding my home file server so that it now has enough space for me to keep all of my anime (among other things) on the server itself, rather than having to grab my archived copies for viewing. However, I've been fairly lazy with regards to putting all of my stuff into AniDB and keeping it up-to-date. This is where the idea of a script running via cron on my server has come from.
For starters I'm thinking of something that will check a specified directory at a predefined interval (once a day perhaps) and see if any new files have been placed there. If so, it will then hash them and add them to my list. Simple, no?
I figure from this basis I can add further features as they seem appropriate to me, and I can also use the local copy of the data for my list in other apps with ease. So does anyone have any pointers/thoughts/ideas? Has this been done before? I had a look through the clients list and I didn't see anything that did exactly what I'm after, although I may well use some of the code there as a basis where permissible.
Anyway, any suggestions and/or constructive criticism is more than welcome, especially for the name of the script
For starters I'm thinking of something that will check a specified directory at a predefined interval (once a day perhaps) and see if any new files have been placed there. If so, it will then hash them and add them to my list. Simple, no?
I figure from this basis I can add further features as they seem appropriate to me, and I can also use the local copy of the data for my list in other apps with ease. So does anyone have any pointers/thoughts/ideas? Has this been done before? I had a look through the clients list and I didn't see anything that did exactly what I'm after, although I may well use some of the code there as a basis where permissible.
Anyway, any suggestions and/or constructive criticism is more than welcome, especially for the name of the script