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

RE: crontab $MAILTO question



>> Hi
>>
>> I make backups using a cron job and I set MAILTO=""
>> Can I configure cron to mail me
>> a) *only* when there were errors
>> b) email only STDERR (not STDOUT)

Why not just remove the MAILTO line, and redirect
standard output from the backup to /dev/null.  Presuming
the application only writes standard error when there
is an error, this should work, no?

- Chris


**********************************************************************
This electronic mail is intended for the use of the addressee only. If you receive this electronic mail in error, please delete it immediately. It may also contain confidential information. You may not use or disclose any confidential information.

The statements or views expressed in this electronic mail are those of the individual sender and are not those of AAP Information Services Pty Ltd (AAP). These statements are not binding on AAP, except where the sender expressly and with authority, states them to be.

AAP is unable to review the contents of all of the electronic mail on its system. To the extent permitted by law, AAP disclaims all liability for any loss or damage caused by the contents of this electronic mail.
**********************************************************************



Reply to: