when-changed
when-changed copied to clipboard
Execute a command when a file is changed
easy method to run when-changed as a (systemd or other type of) service
It seems that COMMAND by default is passed to /bin/sh -- if correct, is it possible to pass COMMAND to a different shell, say /bin/bash? On Debian 11, /bin/sh is...
I'm watching for new files, but they are written to over a long period (20 minutes). Does the tool have a check for file size steady-state, or a period of...
I am trying to watch for changes in a file that is in an AWS Elastic File System, however, I noticed that `when-changed` completely doesn't work on files hosted there....
Vim's swap files can be more than just .swp and .swx: > - If this file already exists (e.g., when you are recovering from a crash) a > warning is...
I try to use this as a replacement for pytest-watch, which is not maintained anymore. This works beautifully: `when-changed -s -r tests/ -c echo "hello"` However, I would like to...
I'd like to use when-changed to run blogofile whenever any of my website sources changes, but unfortunately blogofile writes the output into a subdirectory of the source directory, which triggers...
Hi, the following code taken from the `on_created` event handler: ``` if self.observer.__class__.__name__ == 'InotifyObserver': # inotify also generates modified events for created files return ``` prevents the `on_change` method...
Hi, this refers to this message: https://github.com/joh/when-changed/pull/77#discussion_r269892135 As some behaviors may differ from a platform to another, it would be great to add a bunch of tests to guarantee that...
Hi there, I see when-changed got released to PyPI but only as a tarball: https://pypi.org/project/when-changed/#files Python wheels are the current standard for packaging pip packages and it will take you...