Sending STDERR to logger
Posted
by Gnutt
on Stack Overflow
See other posts from Stack Overflow
or by Gnutt
Published on 2010-03-26T14:47:08Z
Indexed on
2010/03/26
14:53 UTC
Read the original article
Hit count: 303
Im writing a bash-script to perform an offsite backup, using rsync over SSH. I'm able to send STDOUT to logger, for logs via
rsync --del -az -e 'ssh -i mycrt.crt' /home/gnutt/backup/ me@offisite:backup | logger -i
But I want to send STDERR instead, so if there is a problem, such as that offsite is unavailable, that output should be sent to logger and logged.
© Stack Overflow or respective owner