Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2008 23:30:39 +0000 (UTC)
From:      D Hill <d.hill@yournetplus.com>
To:        freebsd-questions@freebsd.org
Subject:   cronjob - email messages sent
Message-ID:  <alpine.BSF.1.10.0804042327290.20308@duane.dbq.yournetplus.com>

next in thread | raw e-mail | index | archive | help

I have several cronjob's set up on a server we have under the user root. I
need to specify specific email addresses results are sent to.

Using documentation from:

   man 5 crontab

I thought I could surround the jobs:

   ...
   MAILTO="root,someoneelse"
   @hourly /usr/local/bin/mysqladmin -u internalonly status
   30 8 * * * /usr/local/bin/mysql -u internalonly < /root/mysql.optimize
   */15 * * * * mysql -u internalonly < /root/delete_rad_usersonline
   0 */4 * * * mysql -u internalonly < /root/delete_rad_authlog_failed
   MAILTO="root"
   ...

It works for @hourly, but not for the other three.

-d



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0804042327290.20308>