How to capture the stderr of rsync and redirect it into a file?

Heiko Schlittermann hs at schlittermann.de
Wed Apr 15 07:36:06 MDT 2015


Hongyi Zhao <hongyi.zhao at gmail.com> (Mi 15 Apr 2015 14:58:21 CEST):
> On Wed, 15 Apr 2015 14:39:10 +0200, Heiko Schlittermann wrote:
> 
> > Because you didn't tell.
> > 
> >     … 2>aaaa
> > 
> > Note the missing space between die file descriptor and the redirection
> > operator.
> 
> Then, why the following one will work, i.e., use a space between the 
> redirection operator and the logfile:
> 
> … 2> aaaa

Because of because :)

Why is FOO=bar without the dollar sign, while in echo "$FOO" I've to use
the dollar sign?

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20150415/c90485c6/attachment-0001.pgp>


More information about the rsync mailing list