项目作者: javanile

项目描述 :
inotifywait alternative with polling
高级语言: Shell
项目地址: git://github.com/javanile/inotifywait-polling.git
创建时间: 2019-12-06T15:13:30Z
项目社区:https://github.com/javanile/inotifywait-polling

开源协议:MIT License

下载




# ⭐ Give me a star, please! ⭐




🔔 inotifywait (with polling)

Build Status
codecov

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

  1. git clone https://github.com/javanile/inotifywait-polling.git
  2. sudo cp ./inotifywait-polling/inotifywait-polling.sh /usr/local/bin/inotifywait-polling
  3. 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).

  1. $ inotifywait-polling $HOME
  2. Setting up watches.
  3. Watches established.

Dockerfile

  1. RUN curl -s https://javanile.github.io/inotifywait-polling/setup.sh | bin=inotifywait bash -

Changelog

Please see CHANGELOG for more information on what has changed recently.

Testing

  1. $ make install
  1. $ make tdd take=tests/HamperDatabaseTest.php

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email bianco@javanile.org instead of using the issue tracker.

Socialware

We highly appreciate if you create a social post on Twitter by clicking the following button

Share on Twitter

Credits

This project exists thanks to all the people who contribute.

Support us

Javanile is a community project agency based in Sicily, Italy.
You’ll find an overview of all our projects on our website.

Does your business depend on our contributions? Reach out us on Patreon.

License

The MIT License (MIT). Please see License File for more information.