File Directory Change Monitoring
1) Obiettivo: Vogliamo controllare una directory unix, segnalando via e-mail se il suo contenuto cambia. 2) Soluzione: Modificare opportunamente i parametri di configurazione, quindi lanciare in background (sh filedirChangeMonitoring.sh &) il seguente 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 # # NOTE: # The script should be run Continua a leggere