directory:run_a_command_upon_files_or_directories_changes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
directory:run_a_command_upon_files_or_directories_changes [2021/01/26 01:13] – created peter | directory:run_a_command_upon_files_or_directories_changes [2021/01/26 10:53] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Directory - Run a Command Upon Files or Directories Changes ====== | ||
- | |||
- | Use either inotifywait or iwatch. | ||
- | |||
- | For example | ||
- | |||
- | <code bash> | ||
- | inotifywait -m -e modify, | ||
- | chmod 644 file; && \ | ||
- | chown blah:blah file; | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE:** | ||
- | |||
- | * **-m, --monitor**: | ||
- | * **-r, --recursive**: | ||
- | * Symbolic | ||
- | </ | ||
directory/run_a_command_upon_files_or_directories_changes.1611623635.txt.gz · Last modified: 2021/01/26 01:13 by peter