Managing cron and similar E-Mails from headless systems

Chris Green cl at
Fri Feb 17 12:38:32 UTC 2017

On Fri, Feb 17, 2017 at 06:24:10AM -0600, W Scott Lockwood III wrote:
>    On Feb 17, 2017 06:14, "Chris Green" <[1]cl at> wrote:
>      No use, I want an *ordinary* cron job to identify itself.
>      E.g. I have backup jobs running on one of my headless computers with
>      cron entries like:-
>          20 1 * * * rsync -a --exclude '*.pyc' /home/chris/
>      When something goes wrong I want to be able to identify where the
>      mail
>      from cron came from.
>    Wrap that cron in a script. Have the script echo the identifier of your
>    choice before it does anything else.
>    echo "This cron is running on Fred, the RPI system providing DNS and
>    DHCP. It lives under your couch."
>    Or something similar.
I suppose one could do that, but I don't want E-Mails *except* when
there's an error which would make the wrapper script rather

Surely this is a fairly common problem and there must be a reasonably
simple solution.

Chris Green

More information about the ubuntu-users mailing list