The inotify tag has no wiki summary.
1
vote
0answers
14 views
incrontab reports modifying a file that doesn't exists
I have created this incrontab entry:
/tmp IN_ALL_EVENTS /home/me/changes.sh $@/$# $%
and this script (changes.sh):
#!/bin/bash
echo "file $1 changed(flgs: $2)" >> /home/me/changes.log
...
3
votes
1answer
83 views
No output from inotifywait | awk
I'm attempting to use part of a one-liner found here: Script to monitor folder for new files?
When I try the following procedure I get no output whatsoever and I cannot figure out why.
In terminal ...
17
votes
3answers
3k views
Who's consuming my inotify resources?
After a recent upgrade to Fedora 15, I'm finding that a number of tools are failing with errors along the lines of:
tail: inotify resources exhausted
tail: inotify cannot be used, reverting to ...
2
votes
0answers
70 views
Can I limit the number of inotify watches available to a process or cgroup?
I am consistently running out of inotify resources, leading to errors along the lines of:
# tail -f /some/files
tail: inotify resources exhausted
tail: inotify cannot be used, reverting to polling
...
7
votes
1answer
458 views
Does inotify fire a notification when a write is started or when it is completed?
Imagine two processes, a reader and a writer, communicating via a regular file on an ext3 fs. Reader has an inotify IN_MODIFY watch on the file. Writer writes 1000 bytes to the file, in a single ...
2
votes
1answer
63 views
App which can execute arbitrary code on different events
I've been looking for a simple activator which can execute some code when stuff happens, I haven't found anything yet. Maybe, I am not using the right keywords. It would be great if someone pointed me ...
4
votes
1answer
305 views
Efficiency of lots of inotify watches or stat calls
I am developing software that will utilize inotify to track changes on a large amount of files (tens to hundreds of thousands of files). I have come up with these ideas:
one watch per file
one watch ...
13
votes
1answer
4k views
Kernel inotify watch limit reached
I'm currently facing a problem on a linux box where as root I have commands returning error because inotify watch limit has been reached.
# tail -f /var/log/messages
[...]
tail: cannot watch ...