1

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

viavad
  • 343

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