You are not logged in.

#1 2010-10-07 04:43:32

XtrmGmr99
Member
Registered: 2009-04-14
Posts: 128

How to get inotify to watch for subdirectories...

Hello,

I run a torrent box that automatically downloads TV shows. When this happens, sometimes a new directory is created.

I wanted to use inotify to watch these directories for when a file is moved to it (meaning the download is done) and to send a command when it happens. However, the fact that inotify cannot automatically watch subdirectories leaves me in a  sticky situation. Every subdirectory needs to be added manually, and since these subdirectories are dynamic (can come and go without warning) I need to something to watch for -them-, and add them to the inotify program.

Is there a way to do this without running a script every 5 minutes to add any new directories? Because I don't think that will work well...

Offline

Board footer

Powered by FluxBB