User Tools

Site Tools


bash:directories:monitor_a_directory_for_changes:using_iwatch

BASH - Directories - Monitor a directory for changes - Using iwatch

Install iwatch

sudo apt install iwatch

Monitor a directory

iwatch /somedir
 
iwatch -r -c '(w; ps -aux)' | echo '%f was changed' /somedir

NOTE: Executes the w and ps -aux command upon the event occuring.


References

bash/directories/monitor_a_directory_for_changes/using_iwatch.txt · Last modified: 2022/06/13 09:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki