Questions tagged [inotify]

inotify is a Linux kernel subsystem that informs processes when files are accessed/created/modified or deleted.

The primary purpose of inotify is to prevent processes from regularly scanning file systems for changes which may be costly and have undesirable lags.

There is a command line interface and bindings exist for several languages including python, java, ruby, haskell, PHP.

To debug inotify related issues, you can log the actual events triggered by the inotifywatch tool. (part of the inotify-tools.)

633 questions
-3
votes
1 answer

inotify not installing in rocky8 linux

I am trying to install inotify-tools.x86_64 in a rocky8 linux machine. I am getting the following error. Any leads are much appreciated ~yum install inotify-tools.x86_64 Last metadata expiration check: 1:09:43 ago on Thu 19 May 2022 04:50:55 PM…
DJ4186
  • 159
  • 1
  • 3
  • 16
-3
votes
1 answer

systemd-path service not working

I have added systemd service to monitor a path. But it is not working. I touched a .txt file under /tmp/test/. But it is not kicking in my service. I cant see "/tmp/testlog.txt" getting generated. Is there anything wrong in my…
A R
  • 2,697
  • 3
  • 21
  • 38
-3
votes
1 answer

Having trouble with inotifywait, trying to watch a directory for golang changes

I'm trying to write a bash script to monitor a directory for changes. If the file is a .go or .html file I would like to kill a specific process and then start it. This is failing all over the place and I'm not sure why. I tried my best to get this…
AntelopeSalad
  • 1,736
  • 1
  • 16
  • 27
1 2 3
42
43