Hi,
I have one job in crontab that I want to disable emails for, but I want to continue to log to a file.
This is what I have:
I can't use the
I have one job in crontab that I want to disable emails for, but I want to continue to log to a file.
This is what I have:
Code:
root@srv06:/# crontab -e
0 0 * * * service apache24 restart >> /var/log/apache-restart.log
I can't use the
MAILTO=""
variable because that will stops all crontab emails, and >> /dev/null >> 2>&1
disables file logging?