Skip to main content
20 events
when toggle format what by license comment
Aug 9, 2022 at 20:25 history edited Matthias Braun CC BY-SA 4.0
add links, improve formatting
Jan 4, 2022 at 20:12 review Suggested edits
Jan 5, 2022 at 10:04
Apr 27, 2021 at 3:25 comment added Ray Foss I needed a bunch of other options inotifywait -me modify,create,delete /home/Mansoor/ITB/uploads. This works on Windows WSL2, ChromeOS, RHEL even Android! stackoverflow.com/questions/50168397/…
Oct 16, 2020 at 17:53 comment added MaXi32 i use inotify for my bash script and most of the script have awk, sed. and reading again this answer carefully, I felt regret not reading about how to implement that 'built-in' variables path, action, file instead of using grep, etc.. thanks a lot for this answer
Aug 1, 2020 at 15:50 comment added user425161 this not work if the director is end Point of FTP point mount.
Jul 15, 2020 at 18:04 comment added Bob For CentOS: yum --enablerepo=epel -y install inotify-tools
S Mar 9, 2020 at 5:01 history suggested Dario Seidl CC BY-SA 4.0
Don't change the path variable which changes the PATH in zsh
Mar 8, 2020 at 23:24 review Suggested edits
S Mar 9, 2020 at 5:01
Jan 21, 2020 at 11:14 review Suggested edits
Jan 21, 2020 at 13:36
Aug 4, 2018 at 13:38 comment added Tim @Wender inotfiywait outputs 3 pieces of information on a single line when triggered. The 'read' bash builtin reads the input line and assigns each of the three pieces of information to a variable. Thus the first piece is assigned to the variable path, the second to action, and the third to file. Having assigned values to those variables, they are then available to be used later (like on the echo line). More information: tldp.org/LDP/Bash-Beginners-Guide/html/sect_08_02.html
May 18, 2018 at 1:35 comment added Wender can you explain me the "while" line? Where did "path", "action" and "file" come from?
Jul 30, 2015 at 13:22 comment added user100278 Now there is also a portable tool for it called fswatch. I did not write it, but it's open source and I use it.
S Jul 24, 2014 at 14:03 history edited Drav Sloan CC BY-SA 3.0
Corrected "move_to" to "moved_to" (no need for "EDIT" text in post, as the changes are stored anyway and can be viewed via history)
S Jul 24, 2014 at 14:03 history suggested Luke Cousins CC BY-SA 3.0
Corrected "move_to" to "moved_to"
Jul 24, 2014 at 13:50 review Suggested edits
S Jul 24, 2014 at 14:03
S Apr 17, 2014 at 6:59 history suggested Bruno Bronosky CC BY-SA 3.0
Two simplifications and an improvement: Used the builtin event filter. Used multiple `read` arguments to isolate the filename. Included move_to as an event filter because files have 2 ways of getting into a folder.
Apr 17, 2014 at 6:45 review Suggested edits
S Apr 17, 2014 at 6:59
Nov 19, 2011 at 20:38 vote accept norq
Nov 19, 2011 at 16:43 history edited enzotib CC BY-SA 3.0
added 10 characters in body
Nov 19, 2011 at 16:35 history answered enzotib CC BY-SA 3.0