Questions tagged [inotify]
57 questions
1
vote
1 answer
Why inotify-tools has different log format with the same config?
inotify config:
/usr/bin/inotifywait -e modify \
-mrq --timefmt %a-%b-%d-%T --format '%w%f %T' \
/var/www/ | while read file; do
echo "$file " >>…

ADM
- 1,373
- 12
- 16
1
vote
2 answers
Use inotifywait and lftp to synchronize servers
I have two servers:
Server A (CentOS), where people can upload files to (upload root is /files)
Server B (Win 2008), with FileZilla FTP Server (FTP root is C:\content)
I want that whenever a file is uploaded to Server A, to any subfolder under…

KBoek
- 134
- 1
- 7
1
vote
1 answer
Is there a good way to combine the incremental behavior of rdiff-backup with the inotify behavior of lsyncd?
I'm trying to backup a directory (my Zotero data, in particular) whenever it changes (a la syncing with drop box); I would also like to keep a history of backups in case I delete something and want to restore it. lsyncd solves the first of these;…

Alex R
- 121
- 3
1
vote
1 answer
nohup create multiple process
I am using nohup for the script run inotify command, because inotify stop when I exit from terminal so I want the script to run on background. so I run the script like this
nohup /path/to/script.sh >/dev/null 2>&1 &
the problem is not nohup create…

Daniel
- 13
- 7
1
vote
1 answer
How to check which processes are deleting files without using inotify or auditd?
I'm trying to figure out which processes are deleting files from a specific directory on my CentOS server.
I looked at inotify, but all this does is to tell me how many file deletions are occurring; it does not tell me what process run by which user…

Tola Odejayi
- 334
- 1
- 4
- 19
1
vote
6 answers
Would this kind of monitoring solution be feasible?
I am wondering if it would be of any help if some kind of tools that does filesystem monitoring (i.e inotify-tools) would be modified in order to monitor/report back through ssh. Would it help sysadmins to be able to do something like inotify-watch…

hyperboreean
- 294
- 5
- 13
1
vote
1 answer
how to make pyinotify to run a program on any modification over a file?
I have to watch for any input given to or any changes that made in the present content over a file, upon any modification i need to run a python program which is located in the same folder.
I tried my best to understand but i'm not able to get any…

Bhuvan raj
- 19
- 1
1
vote
1 answer
Can I patch a tiny part of the kernel without recompiling?
I'm using inotify for a project, and desperately require the functionality provided by this patch: http://article.gmane.org/gmane.linux.kernel/758183
Can I apply this patch to my existing Linux kernel, or would a recompile be in order?
user58162
1
vote
1 answer
Question About inotifywait
Here is an example shell script I'm looking at implementing using inotify:
inotifywait -mrq -e close_write -e create -e delete -e move /var/www | while read file;
do
rsync -av /var/www1/ /var/www2/
done
Let's say rsync takes 30 seconds to…

Travis Mijat
- 51
- 1
- 6
0
votes
1 answer
inotifywait script causes recursive loop
I have an inotifywait script that monitors a ftp upload directory and whenever a new file is uploaded it sets the correct permissions.
I do this because the remote client forces wrong file modes and preventing the ftp server to accept chmod commands…

chichi
- 3
- 2
0
votes
0 answers
Alert when a daemon stops writing in log file after some seconds
I need to send an alert if one daemon (linux) stops writing in his log file.
This dameon not work properly and it not write any when shutdown.
I am using an inotify for watch this problem.
I see this:
inotifywait -e modify -t 10…

abkrim
- 417
- 7
- 18
0
votes
1 answer
How to reload httpd service on changes automatically using Supervisord?
I am working in a Docker container that so far have the following ready to go:
CentOS 6 (latest, I think is 6.9)
Apache 2.2.15 (latest on CentOS6 repositories)
PHP 5.3.3 (latest on CentOS6 repositories)
Supervisord 3.3.3
I am stolen the idea from…

ReynierPM
- 710
- 5
- 14
- 30
0
votes
2 answers
Inotify/iwatch cannot see when more files created at the same time
I would need a script that can check files when they are getting uploaded/created on the server.
I wrote the script that checks, but I would like to make it run when a create event happens. I tried it with iwatch then with inotify but I experienced…

vdavid
- 31
- 1
- 1
- 4
0
votes
0 answers
prevent proftpd to rename directoy on create
description: I asked a question in stackoverflow (Link to question) about how FTP server works in data channel, I did not get my answer,however I find out that there are several FTP server, My server use proftpd with default config(I think it's…

Mohammadhzp
- 101
- 3
0
votes
1 answer
inotifywait invalid option -d (daemon)
I'm trying to run inotifywait as daemon by this command:
root@server:/# inotifywait -mrd -e delete -e delete_self -e create -e moved_from -e moved_to /path -o /tmp/path.log
But I'm getting this error:
inotifywait: invalid option -- 'd'
What am I…

Martin
- 111
- 4