Skip to main content

Questions tagged [inotify]

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

I've been trying to get ClamAV's clamonacc on-access scanner to monitor the overlay2 file system where Docker container file systems are mounted on my Linux (Ubuntu 24.04) VM, so that I can detect any ...
TPJ's user avatar
  • 11
0 votes
0 answers
195 views

I have a rather unique setup: Proxmox setup with 2x fileservers (Debian 12), running DRBD for redundancy, XFS as the main data filesystem and then an NFS share set up for our 6 node cluster to access. ...
Mike Manning's user avatar
1 vote
1 answer
251 views

How can I detect changes on a mounted NAS? It is mounted via fstab: //fritz.box/FRITZ.NAS /media/fritz cifs username=foo,password=bar,vers=1.0 0 0 Since I tried entr and inotify to no avail, I'm ...
jjk's user avatar
  • 445
3 votes
0 answers
185 views

I want to run inotifywait to watch for all CREATEs of .txt files (recursively) under, let's say, the current directory. I run the following: inotifywait -mr --event create --format '%e %w %f' --...
jaimet's user avatar
  • 466
1 vote
2 answers
653 views

I'd like to monitor a file with inotify, and trigger some code when someone changes the content (IN_MODIFY or IN_CLOSE_WRITE), but I'm running into problems where inotify stops returning events when ...
Stewart's user avatar
  • 16.1k
0 votes
1 answer
235 views

I'm using the following bash script to test inotifywait. while true; do inotifywait -r -e modify,create,delete "$DIRECTORY_TO_WATCH" done inotifywait is listening to created files: /...
wyc's user avatar
  • 143
0 votes
1 answer
212 views

I have a second hard drive which has the following structure: $ tree -L 1 . ├── Documents ├── Music ├── Pictures └── Videos I want to monitor these folders for changes and, if any, create a symlink ...
telometto's user avatar
  • 2,201
1 vote
1 answer
4k views

I'm running a docker container, in the development environment. I'm trying to set the fs.inotify.max_user_instances value. Since inside the docker container I'm the root user, thus the sudo is not ...
Saeed Neamati's user avatar
0 votes
0 answers
242 views

I use a web server and inotify to check for files changing and posting the new content. It works well if I change the files with an ordinary editor (e.g. pluma): the changed file is posted. If I use ...
user855443's user avatar
0 votes
1 answer
361 views

I have the following bash script, run at system startup to view files dropped into the /srv/mutt directory. It works perfectly for a while but then simply stops 'seeing' files arriving in /srv/mutt. ...
Chris Green's user avatar
0 votes
1 answer
2k views

I'm scripting a special program to my company. By using Inotifywait from inotify-tools, I'm watching a specific folder for new items, and as soon a new file appears, it will be encrypted with gpg and ...
Lucas Santos's user avatar
2 votes
1 answer
634 views

I need to do some actions when a directory grows above a certain size limit. Obviously, obtaining the size can be done with du, but a single run of du takes a long time in my case, loads the disk ...
user10732's user avatar
3 votes
1 answer
2k views

I want to watch a file created and written in a directory by a process. I don't have access to inotifywait tool, so I'm using just the inotify library calls. I start with IN_CREATE to monitor that the ...
rookie's user avatar
  • 145
0 votes
1 answer
569 views

OS: Ubuntu 22.04 LTS. Many posts deal with file monitoring. One in particular is of interest and based on inotifywait, but I don't know how to modify it for my purpose. Objective: to monitor $HOME/{...
Trynn's user avatar
  • 3
1 vote
1 answer
99 views

I want to capture inotify CLOSE_WRITE events in a directory and write CSV info to a history file. My attempt : #!/bin/bash dir=/home/stephen/temp host=$(hostname) inotifywait -e close_write -m --...
Stephen Boston's user avatar
8 votes
1 answer
2k views

I am trying to use inotifywait to watch a folder (/shares/Photos) and when it detects a jpg added to the folder I need to resize it into a sub directory ($small_dir). Under the photos director there ...
JRC's user avatar
  • 95
0 votes
1 answer
604 views

I just finished an Operating Systems course at my University, and I want to start playing with systems level programs with Rust. One of things I'm looking for is how to intercept a file descriptor of ...
Matanya's user avatar
  • 197
1 vote
1 answer
357 views

The problem is that I'm not being able to keep track of all my files and I'm also tired of not telling which ones are important and which ones are a temporary file that some random programmer decided ...
Lerian Acosenossa's user avatar
2 votes
3 answers
1k views

I'm a novice bash scripter. Need help with the following. I have a script that uses inotifywait to watch a directory. Another process will drop a csv file in nightly. The file will be of the ...
John P's user avatar
  • 21
2 votes
1 answer
306 views

My HDD mountpoint was at /mnt/old, now I changed it to /mnt/new So for seamless transition now /mnt/old is a symlink to /mnt/new. Gradually I want all the programs to use the new mountpoint. How can I ...
asd's user avatar
  • 21
3 votes
1 answer
3k views

I need to monitor a directory and do some post actions based on the events happened. I am familiar with inotifywait but since we use docker based on alpine, I was thinking about is there other way to ...
Qiulang 邱朗's user avatar
1 vote
0 answers
74 views

I'd like to obtain a complete list of what a particular program (not mine, installed as a package) is watching, because some notifications it generates make it appear to be looking at things it ...
Walf's user avatar
  • 1,617
0 votes
1 answer
327 views

I have Debian 10 running on a small SBC (industrialized Raspberry Pi like form factor). I have some python programs running that make use of inotify capabilities. I want to detect when the network ...
Travis Griggs's user avatar
0 votes
1 answer
608 views

My laptop has a cracked touchscreen that the local Asus tech tells me can't be replaced, not even with a non-touch because they just don't make them anymore. It is in all other respects a great laptop ...
Stephen Boston's user avatar
2 votes
2 answers
550 views

I currently have this: inotifywait -m ./input -e close_write | parallel --max-args 1 "echo {1}" For some reason this doesn't do anything at all. The output of inotifywait is the same as ...
Clonkex's user avatar
  • 152

1
2 3 4 5