[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about scripting

From: Thorsten Kampe
Subject: Question about scripting
Date: Wed, 24 Jul 2013 01:01:10 +0200
User-agent: MicroPlanet-Gravity/3.0.4


I'd like to make a check-file-chksum action which does the following

check file FILE
      path /FILE

if failed checksum
    then "send email with "diff /FILE /etc/monit/files/FILE" output in
         the body and /FILE attached to the email"
    else if succeeded then "cp /FILE /etc/monit/files/"

How would I have to approach this? Any hints?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]