The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
8 views

Other ways to increase max open files?

I have an application which keeps giving me the following error. tail: inotify cannot be used, reverting to polling: Too many open files I have already followed all the advice I've been able to ...
0
votes
0answers
101 views

How to know which file or inode triggered a systemd.path unit?

Systemd offers unit files whom control monitoring of a certain path trough inotify: systemd.path(5). If a file or directory is modified in the watched path the corresponding systemd.service(5) is ...
0
votes
0answers
85 views

Oom-killer (out of memory) with plenty of RAM (?!) - inotify

I'm facing an issue by putting inotify to a huge amount of folder (~2 000 000). I changed the max_user_watches to 8388608 : echo 8388608 > /proc/sys/fs/inotify/max_user_watches To support this ...
1
vote
1answer
105 views

In Linux, how do I run a program when a non-existing file inside a certain directory is attempted read?

I have a partition on a hard drive that is encrypted with dm-crypt using a passphrase. What I want to do is have a password prompt pop up when some program tries to read a file within this partitions ...
0
votes
0answers
106 views

How do I configure fsnotify's queue size/watch limit on OSX?

Note: This might be a StackOverflow question, since it's about something that's only accessible via the internal API on OSX, but I'm posting it here since it seems to be more about using a tool that's ...
1
vote
0answers
292 views

How to get current number of opened inotify watches?

My system is CentOS. I'm trying to get this by listing fs.inotify variables via sysctl call (sysctl fs.inotify), but didn't found anything useful, only variables to specify limits.
0
votes
1answer
53 views

inotitfywait list accessed files (once) no duplicates

I am sure this is a simple question but i just cannot figure it out. List all files that (in any way) trigger an event defined in inotifywait. My command is: inotifywait -m -c -r $PWD > ...
1
vote
1answer
319 views

How to clear orphaned watch descriptors of inotify

After creating a file descriptor by calling inotify_init() I add thousands of watches to the inotify instance(hope it is right to call that so). My questions is if my program crashes what happens to ...
5
votes
3answers
2k views

Watch Filesystem in Real Time on OS X and Ubuntu

I'm looking for a CLI tool which will watch a directory and spit out the names of files that change in real time. some_watch_command /path/to/some/folder | xargs some_callback I'm aware of inotify ...
0
votes
0answers
909 views

inotify or equivalent on CIFS mount?

I'm trying to use incron or inotifywait on a CIFS share but it seems that inotify does not work with such mounts (cf. http://lists.samba.org/archive/linux-cifs-client/2009-April/004319.html). Is there ...
1
vote
1answer
786 views

Help with Watch Directory Script

First, I should note that I am pretty new to writing scripts, but I know my way around ubuntu well enough that I don't mind getting my hands dirty... I have a small script, which does a simple ...
2
votes
1answer
357 views

Monitor /sys partition for changes

inotify doesnt work on /sys and /proc file systems. So how can I monitor a /sys partition file without polling?