Hi, Alec ([EMAIL PROTECTED]) wrote: > > 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)
You could simply supply a valid MAILTO and send STDOUT to /dev/null like so: MAILTO=whoever * * * * * whoever dothisandthat > /dev/null That way you will only get an email when there is output to STDERR. Hth, Gordon -- Gordon Fraser We come to bury DOS, not to praise it. [EMAIL PROTECTED] (Paul Vojta, [EMAIL PROTECTED], http://www.freakzone.net paraphrasing a quote of Shakespeare)
pgpM3pso5Bqlc.pgp
Description: PGP signature