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

2015-04-15 Thread Heiko Schlittermann
Hongyi Zhao hongyi.z...@gmail.com (Mi 15 Apr 2015 13:32:23 CEST): Hi all, See the following commands: werner@debian:~$ rsync -c ftp.cn.debian.org::debian/ 2 aaa rsync: The server is configured to refuse --checksum (-c) rsync error: requested action not supported (code 4) at clientserver.c

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

2015-04-15 Thread Hongyi Zhao
On Wed, 15 Apr 2015 14:39:10 +0200, Heiko Schlittermann wrote: Because you didn't tell. … 2 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:

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

2015-04-15 Thread Heiko Schlittermann
Hongyi Zhao hongyi.z...@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 Note the missing space between die file descriptor and the redirection operator. Then, why the following one

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

2015-04-15 Thread Hongyi Zhao
Hi all, See the following commands: werner@debian:~$ rsync -c ftp.cn.debian.org::debian/ 2 aaa rsync: The server is configured to refuse --checksum (-c) rsync error: requested action not supported (code 4) at clientserver.c (849) [sender=3.0.9] rsync: read error: Connection reset by peer (104)