1

Are there any methods or bash tools that can observe some events (such as creating a folder) and then do another actions?

ctrl-alt-delor
  • 27,473
  • 9
  • 58
  • 102
viavad
  • 333
  • 1
  • 2
  • 8

1 Answers1

1

What you are looking for is inotify, there are programs inotifywait and inotifywatch, in package inotify-tools.

You can add event handlers to creates, reads, writes, deletes, etc.

To install: sudo apt-get install inotify-tools

see also package inotify-hookable

ctrl-alt-delor
  • 27,473
  • 9
  • 58
  • 102