https://github.com/javanile/inotifywait-polling
🔔 inotifywait alternative with polling
https://github.com/javanile/inotifywait-polling
bash disk-monitoring docker file-watcher inotify inotifywait mount nfs polling smb windows
Last synced: 3 months ago
JSON representation
🔔 inotifywait alternative with polling
- Host: GitHub
- URL: https://github.com/javanile/inotifywait-polling
- Owner: javanile
- License: mit
- Created: 2019-12-06T15:13:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T21:31:10.000Z (about 1 year ago)
- Last Synced: 2025-04-12T21:52:16.255Z (3 months ago)
- Topics: bash, disk-monitoring, docker, file-watcher, inotify, inotifywait, mount, nfs, polling, smb, windows
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 14
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⭐ Give me a star, please! ⭐
---
# 🔔 inotifywait (with polling)
[](https://travis-ci.org/javanile/inotifywait-polling)
[](https://codecov.io/gh/javanile/inotifywait-polling)Today **inotify** has limitaions on watch for chagnes into particular filesystem or mount point. Here is a short list
- Mountend volumes from Docker containers in a Microsoft Windows host.
- Mountend directories with file system SMB/NFS from GNU/Linux host.In all of this cases you can use **inotifywait-polling** instead of classic **inotifywait** to watch for changes into the above scenarious.
## Install
The most common way to install the project is from GitHub source
```shell
git clone https://github.com/javanile/inotifywait-polling.git
sudo cp ./inotifywait-polling/inotifywait-polling.sh /usr/local/bin/inotifywait-polling
chmod +x /usr/local/bin/inotifywait-polling
```## Usage
It works exactly like the original, so it accepts the same options, with the only difference that it checks every 5 seconds that your target has changed or not (unfortunately this is the only way around the problem in those file systems where the original does not work).
```shell
$ inotifywait-polling $HOME
Setting up watches.
Watches established.
```### Dockerfile
```bash
RUN curl -s https://javanile.github.io/inotifywait-polling/setup.sh | bin=inotifywait bash -
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
```bash
$ make install
``````bash
$ make tdd take=tests/HamperDatabaseTest.php
```## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Socialware
We highly appreciate if you create a social post on Twitter by clicking the following button
[](https://twitter.com/intent/tweet?text=Hello%20world)
## Credits
This project exists thanks to all the people who contribute.
- [Francesco Bianco](https://github.com/francescobianco)
- [All Contributors](https://github.com/javanile/hamper/graphs/contributors)## Support us
Javanile is a community project agency based in Sicily, Italy.
You'll find an overview of all our projects [on our website](https://www.javanile.org).Does your business depend on our contributions? Reach out us on [Patreon](https://www.patreon.com/javanile).
## License
The MIT License (MIT). Please see [License File](https://github.com/javanile/hamper/blob/main/LICENSE) for more information.