I have a script that syncronizes folders. The script does
/usr/bin/rsync -av --delete $SOURCE $DEST >> $LOG_FILE 2>> $ERR_LOG_FILE
so it redirects output to LOG_FILE
and error output to ERR_LOG_FILE
.
In addition, I would like the errors sent to root
via e-Mail. How can I do that?