inotify-tools is a set of command line utilities for the Linux inotify filesystem change notification system.. #Inotify tools #Inotify filesystem #Notification system #Inotify-tools #Inotify #Notification
inotify-tools is a set of command line utilities for the Linux inotify filesystem change notification system.
OK, so I made a little inotify command line utility to be called from shell scripts like so: #!/bin/sh
while { inotifywait -e modify /var/log/messages; }; do echo "Log modified!" # Do some relevant command here done
This is probably the most efficient way to block for changes on a file from a shell script. See 'inotifywait -help' for more info. I was originally thinking I'd put this up on sourceforge as a new project, but it's just too damn small.
If you don't specify which event you want to catch, all will be caught, and the event which occurred is output on stdout.
#!/bin/sh
EVENT=`inotifywait ~/file1` [ $? = 0 ] && exit [ "$EVENT" = "MODIFY� ] && echo "file modified!" [ "$EVENT" = "DELETE_SELF" ] && echo "file deleted!" # etc...
inotifywait will return true if an event you asked for is caught. If an event you didn't ask for is caught, it will return false; this generally occurs if you listen to a file on a particular partition, then unmount that partition, or if you listen for a specific event and the file is deleted before that event occurs, or something similar.
What's New in This Release:
� A bug that caused some command line options to be discarded was fixed.
inotify-tools 3.13
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- inotify-tools-3.13.tar.gz
- main category:
- Utilities
- developer:
- visit homepage
Windows Sandbox Launcher 1.0.0
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
7-Zip 23.01 / 24.04 Beta
Bitdefender Antivirus Free 27.0.35.146
Zoom Client 6.0.3.37634
ShareX 16.0.1
IrfanView 4.67
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
calibre 7.9.0
Context Menu Manager 3.3.3.1
- Microsoft Teams
- calibre
- Context Menu Manager
- Windows Sandbox Launcher
- 4k Video Downloader
- 7-Zip
- Bitdefender Antivirus Free
- Zoom Client
- ShareX
- IrfanView