What is wrong with the formatting ? I mean.. when i run crontab crontab I don't get any error messages [I got in the past a few times] ... so, as long as crontab doesn't complain... are there chances that the formatting is bad ?
Oh, and regarding multiple mailto, consider the following fictive example:
Quote:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
[... other declarations...]
#
# piwik cron
#
MAILTO="address@domain.tld"
@hourly apache /var/www/html/piwik/misc/cron/archive.sh > /dev/null
01 * * * * [command123]
|
if a mail would be sent from the last command (command123), where would the mail end up? In the root mailbox or in the
address@domain.tld mailbox ?
I mean.. if you declare mailto multiple times, the 2nd time, 3rd time, 4th time etc those declarations will stand up only for the next cron command ? or they will remain active until the next mailto overwrites them ?