Skip to main content

Thread: Cron job creates random dated log files, how to have those logs emailed after it runs


i have 2 cron jobs run 1 of them @ noon , @ midnight rsync our mail server nas. create log filed based on year, month , date ran. second runs every sunday @ 4am full backup of email server , database , rsyncs creates same type of log.

there way can run job when completes attach log file created , email off myname@domain.com ?

add:
mailto=myname@domain.com

crontab. usual put on top, first line.
eg:

code:
mailto=myname@domain.com  * * * * * echo "ubuntu rules"
best regards.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Cron job creates random dated log files, how to have those logs emailed after it runs


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account