Tagged: script

File Directory Change Monitoring

1) Purpose: We want to check out a unix directory, signaling with an email if its content change.   2) Solution: Before modify appropriately the configuration parameters inside, then run in background mode (sh filedirChangeMonitoring.sh &) the following shell script.   #!/bin/bash # #  filedirChangeMonitoring.sh #  DATE : 2014-07-30 #  DESC.: #  Script for the monitoring of files in a directory #  The script checks if changes are made to the files of a directory and it alerts with an e-mail #  Before running the script modify the following parameters: TO_ADDRESS, FROM_EMAIL_ADDRESS, xDirMon and xTime #  PARENT SCRIPT: none #...