[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron run as someone and mailto another



On Sat, Oct 26, 2002 at 10:38:03AM +0800, Patrick Hsieh wrote:
> I'd like to put some cron in /etc/cron.d/ and have them run as "www-data"
> but send the cron log mail to another user. Is it possible? Seems the
> cron syntax does not support this.

It does - set the MAILTO variable in the crontab. See 'man 5 crontab'.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: