On Mon, Nov 26, 2012 at 12: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.
>
> I
On 11/26/2012 09:41 AM, John R. Dennison wrote:
> On Mon, Nov 26, 2012 at 09:32:37AM +0300, Mihamina Rakotomandimby wrote:
>> Is there a special feature such as "it only mail if STDERR"?
>> Because all the messages (rsync output + echo "foo") is to STDOUT.
> Nope. _ALL_ output, bother stdout and s
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
On Mon, Nov 26, 2012 at 09:32:37AM +0300, Mihamina Rakotomandimby wrote:
>
> Is there a special feature such as "it only mail if STDERR"?
> Because all the messages (rsync output + echo "foo") is to STDOUT.
Nope. _ALL_ output, bother stdout and stderr, will be sent via mail to
the owner of the c
On 11/23/2012 12:18 PM, Birta Levente wrote:
>> check out the crontab file if you have these,
> If it's centos 6, maybe /etc/anacrontab
>
>
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
Le ven. 23 nov. 2012 10:42:19 CET, Philippe Naudin a écrit:
> ...
> rsync ...options... 2>&1 > LOGFILE
> echo -e "finished pushing to the backup \n$LOGFILE"
Nonsense, sorry.
If the output is short, you can do :
LOGS=$(rsync ... 2>&1)
echo -e "finished pushing to the backup \n$LOGS"
I you expect
Le ven. 23 nov. 2012 10:52:50 CET, Mihamina Rakotomandimby a écrit:
> Hi all
>
> I have a '/etc/cron.daily/push-to-backup' script which the content is:
>
>#!/bin/bash
>/usr/bin/rsync [... long options line ...]
>echo "finished pushing to the backup"
>
> Launched manually, it's OK.
>
On 23/11/2012 10:28, Banyan He wrote:
> check out the crontab file if you have these,
If it's centos 6, maybe /etc/anacrontab
>
> SHELL=/bin/bash
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> MAILTO=root ===> that's what you are looking for
> HOME=/
>
> # run-parts
> 01 * * * *
check out the crontab file if you have these,
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root ===> that's what you are looking for
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-par
9 matches
Mail list logo