Questions tagged [inotify]
57 questions
0
votes
3 answers
inotify and rsync on large number of files
I am using inotify to watch a directory and sync files between servers using rsync. Syncing works perfectly, and memory usage is mostly not an issue. However, recently a large number of files were added (350k) and this has impacted performance,…

kyleredon
- 1
- 3
0
votes
1 answer
Tomcat error checker using bash
Can someone shed me some light, point me in the right direction?
I want to create a script in bash that will checks exceptions in the logs during the startup of Tomcat app. This script should be able to detect the creation of new files on the fly…

ninjascorner
- 121
- 1
- 4
0
votes
2 answers
Run inotifywait in background
I tried literally ALL ways to get this script running in the background (as startup script, as daemon, etc.).
The problem is that this script works in the terminal, but not in the background:
#!/bin/sh
while /usr/local/bin/inotifywait --format '%T…

jroeleveld
- 111
- 1
- 2
0
votes
1 answer
I want to save events or logs grabbed using Inotify to a file
I need your help - using Inotify I am watching a directory for the changes like create, delete, rename and move. I want these event to be logged in a file and I want to run Inotify as a service.
0
votes
2 answers
Monitor file changes showing file contents changed
My question is similar to Find out which process is changing a file , but i need something more. inotify only tells about few events on a file, Auditd also just gives us pid which did something to file.
but i need to know more details about the…

Farhan
- 4,269
- 11
- 49
- 80
0
votes
1 answer
synchronization between two (or more) file servers : block open files to avoid conflicts
"Short version": When a user opens a file on a local share, other users can open only in read-only, until it is closed.
I want this to be true for the remote copy of the file: read-only when the local file is opened.
"Details": I have two (to begin)…

Klingel
- 1
- 1
0
votes
1 answer
inotify support not available
Im getting a tailwatch error that I think I have traced down to this from my error logs
inotify support not available (Linux::Inotify2 missing or non-functional)
Have no idea what this is or how to replace it? Any help please

Michael Howey
- 185
- 1
- 8
0
votes
2 answers
inotify or similar on centos
I need to get alerted when a new directory or sub directory is created within the root directory that I am monitoring. The alert has to be triggered to a PHP file. How do I do this on CentOS? Is inotify the best route to take? I just need to know…

Pasta
- 302
- 1
- 12
0
votes
2 answers
Force deleted files on NFS server to be recycled instead
I have a RHEL 7.9 server I'm using as a file server. It exposes an XFS partition over NFS for clients to mount and use. I am willing to use a different filesystem than XFS if need be, but I cannot escape using NFS.
I'd like to force a Recycle Bin so…

tjlds
- 3
- 2
0
votes
1 answer
How can I monitor deletion of /dev/null
Usually I use inotfiy_add_watch to monitor deletion of files, it works for regular files or even most device files(/dev/zero,etc...), but fails for /dev/null. It seems that any operations to it will not trigger inotify events. Why?
Is there any…

Vchanger
- 1
0
votes
2 answers
Trigger a command when two files have arrived in different directories in Centos 7
I need to launch a command when two files from different sources are present. Every file could arrive in different time, but I want to trigger the command when both were received. I have tried to do it with incrond, watching both directories for…
-1
votes
2 answers
How to monitor and list modified files server wide for brief periods of time?
I would like to, from time to time, enable server-wide file monitoring that will show me all files being modified, updated and created while I have it running and thus simply spewing forth a list of files modified until I hit control-c.
This is…

ylluminate
- 1,155
- 2
- 17
- 35