inotify is a Linux kernel subsystem that works to expand filesystems to notice changes to the filesystem, and report those changes to applications.

learn more… | top users | synonyms

1
vote
2answers
82 views

How do I run a python script whenever a file is created in a directory?

So, I'm trying to do this, somewhat, simple task, but I have not been successful yet. I'm hoping that changes now. The goal: Run /var/www/lager-scanner/filer/pluk_script.py whenever there is a new ...
0
votes
1answer
40 views

How to use inotify to auto refresh a png file when the png file changed

I am trying to visualize some data, and my program outputs a png file. Each time when I modify my program, the output png file changes. So I hope to have an image viewer that can automatically reload ...
1
vote
1answer
124 views

User limit of inotify watches reached on Ubuntu 16.04

I just installed Ubuntu 16.04 and I get this warning when I start SmartGit: IOException: User limit of inotify watches reached Moreover I get this warning launching tail -f: tail: inotify ...
1
vote
0answers
53 views

inotify/max_user_watches value resets on reboot; how to change it permanently?

Some software that I'm using needs a higher-than-default value in /proc/sys/fs/inotify/max_user_watches. I can modify this value with a text editor or from the terminal, and for a little while, ...
4
votes
1answer
204 views

Why do inotify events fire more than once

This question arises from another one that I had posed on Stackoverflow. I am using Watcher - the same issues apply to Incron - to monitor a folder and its child folders for changes and silently ...
2
votes
1answer
142 views

How do i get the change by oberving file with inotifywait

I want to get the user name each time when its password is changed in /etc/shadow. Here is my script: while inotifywait -e attrib /etc/shadow; do #edit user ...
0
votes
0answers
52 views

Filesync in realtime

I was searching the way how to sync my ubuntu desktop home folders on my NAS. I tried several ways rsync, freefilesync ecc. All very good tools but nothing i found was like example ubuntu one or ...
0
votes
1answer
35 views

Is it possible to see old notifications?

I recently changed some settings in my inotify configuration so that phpstorm would be able to index my files better(I think?). Now my dropbox installation is on the fritz. It can't scan through my ...
2
votes
1answer
515 views

Evince is no longer auto-reloading documents. How can I troubleshoot this?

Evince (the pdf viewer) used to reload my .pdf files after I compiled them in LaTeX. However, this behavior has recently stopped to the point where I have to manually reload Evince (control + R) to ...
8
votes
3answers
728 views

How to run a script when a directory is changed by another user?

I know has been a bit of discussion about topics similar to this. But here is what I am basically trying to do. I have a watch directory called watched and whenever a file is added to that directory, ...
2
votes
2answers
85 views

Internal Differences Between File deleted from GUI and CLI

I am using inotify system call for watching one of my file for all the events (delete,modify etc). But When I deleted file from GUI, no notification was fired. Whereas when I deleted file from CLI ...
1
vote
3answers
305 views

How to log access to a specific folder and changes in its contents?

I need to track folder access time, and want to know what changes are made to it. How do I trigger those events? Is there a way to run a specific .sh file when the folder is opened?
0
votes
0answers
60 views

Folder Action for Ubuntu [duplicate]

I have a question concerning Ubuntu folder action , I need a script to notify me when a file is add to a folder or the folder changes , is there any possibility for that. I found some articles ...
4
votes
2answers
9k views

How do I get the filename from inotifywait events?

So I'm doing a simple inotifywait loop to watch for changes in a Bootstrap directory: while inotifywait -r -q --format %w bootstrap/; do echo "something happened" [[ $filename == *.js ]] &...
1
vote
1answer
147 views

help cannot change inotify watch number because file cant be over written

so I'm trying to start using lsyncd for a more up to date backup system. the problem that i have run into is that the directory that i have to backup contains more than 250,000 items and i would like ...
0
votes
1answer
755 views

inotify in a remote shell and get the output back

My problem is very similar this one: inotify not fast enough Except I am running inotify in a remote shell. I need to monitor for file change on machineA from machineB. machineB has ssh access to ...
18
votes
4answers
11k views

How do I fix a “Can't access Dropbox folder” error?

I'm having a rather strange problem with Dropbox that started a few weeks ago. Dropbox will stop syncing with the message "Can't access Dropbox folder", and refuse to sync until I reboot. I've tried ...
1
vote
2answers
2k views

How to use inotifywait in a non-blocking way and mail the results?

I've tried several times to test my script, but with no success. This is the script: zenity --question --text "my text" if [ $? -eq 1 ]; then zenity --warning --text "my text" else ping -n -...
24
votes
2answers
21k views

How can I tell if I am out of inotify watches?

I use an application that consumes inotify watches. I've already set fs.inotify.max_user_watches=32768 in /etc/sysctl.conf but last night the application stopped indexing unless I ran it manually, ...