Date: Wed, 23 Aug 2006 10:28:41 -0400 From: Bill Moran <wmoran@collaborativefusion.com> To: "Lisa Casey" <lisa@jellico.com> Cc: freebsd-questions@freebsd.org Subject: Re: e-mail from cron Message-ID: <20060823102841.05d85d88.wmoran@collaborativefusion.com> In-Reply-To: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> References: <012e01c6c6bd$29966ac0$d51a2cd0@lisac>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Lisa Casey" <lisa@jellico.com>: > to this: > > # Perform daily/weekly/monthly maintenance. > 1 3 * * * root periodic daily 2>&1 | sendmail service@jellico.com This is a bad idea, mainly because (as you already know) it doesn't work :) If you want to use that syntax above, use mail(1) instead of sendmail. However, you might find it easier to just add the following line to the top of the crontab: MAILTO=service@jellico.com Which will cause all mail generated by the jobs in that file to be sent to the provided address. -- Bill Moran Collaborative Fusion Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060823102841.05d85d88.wmoran>