Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cron and disabling emails for one script only
Date: Wed, 07 Apr 2021 07:32:55
Message-Id: 20210407083241.32877344@digimed.co.uk
In Reply to: Re: [gentoo-user] Cron and disabling emails for one script only by Dale
1 On Tue, 6 Apr 2021 18:51:56 -0500, Dale wrote:
2
3 > > I think you have to do it in your actual backup script or put the
4 > > whole thing in the hourly directory putting >/dev/null at the end of
5 > > each rsync command, but leaving off the 2>&1, so you will get error
6 > > messages.
7
8 > This seems to be working.  Since I added the null bit to the script
9 > itself, it hasn't sent a email.  I don't know if it will if it fails but
10 > I still have weekly backups as well. 
11
12 If you only redirect stdout to /dev/null and leave stderr alone, you
13 should still see errors. But a better option would be to have your script
14 only send output when something goes wrong.
15
16
17 --
18 Neil Bothwick
19
20 Windows - From the people who brought you EDLIN!

Replies

Subject Author
Re: [gentoo-user] Cron and disabling emails for one script only Dale <rdalek1967@×××××.com>