Re: cron -> email results
Boris Goldowsky <boris-FrUbXkNCsVf2fBVCVOL8/[email protected]> Mon, 10 Jan 2005 09:34:24 -0500
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2005-01-10 at 00:25 +0000, Sharon Kimble wrote: > On Sunday 09 Jan 2005 21:15, you wrote: > > All output of a cronjob is always emailed to the owner of the specific > > cron. Have u set up the cron as another user? > > > > //Regards, Torbjorn > > > It is done from my 'root' crontab... The results will then get mailed to 'root' -- if you're running sendmail locally you can have all of root's mail forwarded to your real email address by editing /etc/aliases . Even easier, some versions of cron will respect a MAILTO setting in the crontab file itself: [email protected] 00 02 1 * * /usr/local/bin/hdup monthly gads.hill check 'man 5 crontab' to see if your version has this setting. Bng -- Boris Goldowsky <boris-FrUbXkNCsVf2fBVCVOL8/[email protected]>