User Tools

Site Tools


directory:monitor_a_directory_for_changes:using_iwatch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

directory:monitor_a_directory_for_changes:using_iwatch [2021/01/26 11:03] – created peterdirectory:monitor_a_directory_for_changes:using_iwatch [2022/06/13 09:15] (current) – removed peter
Line 1: Line 1:
-====== Directory - Monitor a directory for changes - Using iwatch ====== 
  
-===== Install iwatch ===== 
- 
-<code bash> 
-sudo apt install iwatch 
-</code> 
- 
----- 
- 
-===== Monitor a directory ===== 
- 
-<code bash> 
-iwatch /somedir 
- 
-iwatch -r -c '(w; ps -aux)' | echo '%f was changed' /somedir 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  Executes the **w** and **ps -aux** command upon the event occuring. 
-</WRAP> 
- 
- 
----- 
- 
-==== References ==== 
- 
-http://manpages.ubuntu.com/manpages/bionic/man1/iwatch.1.html 
directory/monitor_a_directory_for_changes/using_iwatch.1611658994.txt.gz · Last modified: 2021/01/26 11:03 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki