0

err:

tail inotify resources exhausted

I am using inotify to watch a directory for any file changes. But the problem is, the files are coming in fast which exhausts inotify's resources. It opens thousands of file handlers. Is there a way such that, when I get a notification, I could close the file handler right away? For example, if a file is created in the given directory, I want the notifier to give me the path of that file, close the file handler, and wait for other changes?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.