How to automatically run a command when directory updates?

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

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
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. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB 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