Using a shell script, can I watch a folder and block program execution until a file in a certain folder changes?

    • helloworld@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      12 hours ago

      a hobby project: generate a rss feed based on recent file changes in a directory. But I thought this can also have many applications …

      • auto formatting code files on change
      • automatic backups of a certain folder: run rsync on change in folder.
      • Possibly linux@lemmy.zipM
        link
        fedilink
        English
        arrow-up
        4
        ·
        12 hours ago

        Are you familiar with CI/CD pipelines? You could use Git along with a service like Woodpecker CI or Gitlab Runners.