How to automatically run a command when directory updates?

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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

  • watchexec

    Executes commands in response to file modifications

  • I prefer watchexec as it's cross-platform.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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