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

Re: cron and MAILTO



T o n g wrote:
> Say I have a file under /etc/cron.d/ with the following entry:
> 
> 42 4 1 * * user1 echo "This command is run 4:42 am every 1st of the month"

Since this job is run by user1 then all mail goes to user1.

> 01 * 19 07 * user2 echo "This command is run hourly on the 19th of July"

Since this job is run by user2 then all mail goes to user2.

> Now, if I put 'MAILTO=user3' at the top of the file, what will happen? 

All mail will go to user3.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: