Questions tagged [inotifywait]

inotifywait efficiently waits for changes to files using Linux's inotify(7) interface. It is suitable for waiting for changes to files from shell scripts.

Name

inotifywait - wait for changes to files using inotify

Synopsis

inotifywait [-hcmrq] [-e <event> ] [-t <seconds> ] [--format <fmt> ] [--timefmt <fmt> ] <file> [ ... ]

Description

inotifywait efficiently waits for changes to files using Linux's inotify(7) interface. It is suitable for waiting for changes to files from shell scripts. It can either exit once an event occurs, or continually execute and output events as they occur.

126 questions
0
votes
1 answer

bash read: group read results by timeout

Short story: On my Linux desktop, I want for notifications whenever nodes under /dev are created or deleted (it's really useful to know what nodes are created when I plug some device in). I wrote two naive scripts for that: The first one writes…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
0
votes
1 answer

Make synchronized folder with TFS in linux

I am using TFS every where on CentOS and I want to run a service to listen on directory modifying this directory represent TFS local folder and for every (add or modify) it mirroring to TFS I tried to use inotifywait and listen to event…
Steve
  • 503
  • 3
  • 9
  • 19
0
votes
2 answers

How do I pipe output of windows .exe file to a while read line loop in Cygwin?

Is it possible to call a .exe file from a shell script running in Cygwin in order to pipe the result to a while read line loop? The code I have tried is working in Linux (where inotifywait is the application I am trying in Cygwin and is installed in…
Vahe
  • 1,699
  • 3
  • 25
  • 76
-1
votes
1 answer

Check if file has been changed and which line in file

I am looking some solutions which help me to track any changes which have been made on files. I am working on Linux system where a lot of people have access to the same files. Sometimes it is happened, that someone changed something in file and…
majan
  • 125
  • 12
-1
votes
1 answer

Need help fixing this inotifywait bash script

I'm trying to setup an inotifywait script to do this: Step 1: Directory is created, files are placed in it, which triggers inotifywatch to fire which does step 2 Step 2: After 30 minutes, the directory moved and a symlink is created back to the…
stab
  • 9
  • 1
-1
votes
1 answer

Triggering Event in BASH with inotifywait

I'm monitoring a log file (it's a PBX queue file, it's written to when a call comes in and it's the result of what happens to the call, whether the caller hangs up, etc) Here's what I have: while inotifywait -m -e close_write…
TD46
  • 13
  • 2
1 2 3
8
9