How to automatically run a command when directory updates?

This page summarizes the projects mentioned and recommended in the original post on /r/commandline

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. entr

    A utility for running arbitrary commands when files change. Uses kqueue(2) or inotify(7) to avoid polling. entr responds to file system events by executing command line arguments or by writing to a FIFO. entr was written to provide to make rapid feedback and automated testing natural and completely ordinary. (by clibs)

    entr is what I usually reach for when I want to monitor a directory or a list of files and then perform some action on them when changes occur

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. watchexec

    Executes commands in response to file modifications

    I prefer watchexec as it's cross-platform.

  4. entr

    Run arbitrary commands when files change

    FYI that project was last updated Dec 30, 2014. I would stick with the currently maintained repo from the original author.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Watchexec: Execute commands in response to file modifications

    1 project | news.ycombinator.com | 6 Aug 2024
  • Watchexec

    1 project | news.ycombinator.com | 24 Apr 2024
  • Watchexec ignore directory?

    1 project | /r/linuxquestions | 26 Apr 2023
  • How to automatically extract all zip files downloaded to certain directory?

    1 project | /r/archlinux | 19 Apr 2023
  • My first actual Rust program: Cloak, a simple app to search and watch directories to automatically hide files and directories

    2 projects | /r/rust | 1 Apr 2023

Did you know that C is
the 6th most popular programming language
based on number of references?