Managing cron and similar E-Mails from headless systems

Nils Kassube kassube at gmx.net
Fri Feb 17 16:02:47 UTC 2017


Chris Green wrote:
> I'd prefer to do it once though (in E-Mail or other configuration)
> rather than every time I create a cron job.

20 1 * * * rsync ..... || echo hostname

should do the trick - without an extra script but as an extension to 
your command.


Nils




More information about the ubuntu-users mailing list