[Dirvish] sending mail on any failure

Andy Foster fostandy at gmail.com
Fri Apr 17 23:16:19 UTC 2009

On Fri, Apr 17, 2009 at 2:17 AM, Eric Searcy <emsearcy at gmail.com> wrote:
>> Yes, basically. Except I don't want it mailing me at all if there is
>> not an error. I also want it mailing me on ANY error - in the rsync or
>> pre/post scripts.
> <snip>
> Summary for this, which I think matches what you want, but YMMV:
> * Run dirvish so that it only outputs on errors (causing cron mail).
> This means "dirvish-runall --quiet" and no --summary option to "dirvish"
> itself.  This will give only general info, like "post-server failed" I
> think.
> * Have your scripts generate output on errors.  This provides fuller
> debugging for them.
> * Use a post-server script as above to provide fuller dirvish debugging
> info when needed.

thanks Eric. This turned out to be a much simpler way of doing what I wanted!

More information about the Dirvish mailing list