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:
best regards.code:mailto=myname@domain.com * * * * * echo "ubuntu rules"
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
Post a Comment