Re: [Integrit-users] only getting e-mails when it is important
Brought to you by:
ecashin
From: Ed L C. <ec...@ug...> - 2003-07-30 14:46:32
|
RD...@al... (Ross Druker) writes: > I'm not sure what you mean when you say integrit sends mail -- integrit doesn't > send mail, it only reports the results of its file checks and set its return > code. 0 = no changes found, no errors. > > I run integrit from a script and check the return code. If it is non-zero, the > scripts sends mail. This works for recent versions of integrit. If your integrit supports the exit code feature the docs will say so. If you know C, you can read the "Exit Status" section of the documentation and then modify examples/integrit-run.c to fit your needs. If you don't know C, or if you prefer, you could use a script to do the same thing. One disadvantage of only getting mail when differences are found is that you won't know if your integrit job stops running for some reason, or if the mail fails to send, or whatever. -- --Ed L Cashin | PGP public key: ec...@ug... | http://noserose.net/e/pgp/ |