Re: centos 6.3, cron and mail script output

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



On 11/26/2012 06:32 AM, Mihamina Rakotomandimby wrote:
> I have "MAILTO=root" in the file.
> If I make a CLI test to mail to root, all is working.
> 
> Is there a special feature such as "it only mail if STDERR"?
> Because all the messages (rsync output + echo "foo") is to STDOUT.

You can send the stdout to a log file, which will prevent an email from
being sent on stdout contents. As long as you dont redirect stderr as
well, cron will continue to send you emails on errors reported there


-- 
Karanbir Singh
+44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
ICQ: 2522219    | Yahoo IM: z00dax      | Gtalk: z00dax
GnuPG Key : http://www.karan.org/publickey.asc
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux