Hongyi Zhao
2015-Apr-15 11:32 UTC
How to capture the stderr of rsync and redirect it into a file?
Hi all, See the following commands: werner at 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) rsync error: error in socket IO (code 10) at io.c(785) [Receiver=3.1.2dev] Why rsync cann't let me redirect the stderr of it into a file, say, aaa, for this case? Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Heiko Schlittermann
2015-Apr-15 12:39 UTC
How to capture the stderr of rsync and redirect it into a file?
Hongyi Zhao <hongyi.zhao at gmail.com> (Mi 15 Apr 2015 13:32:23 CEST):> Hi all, > > See the following commands: > > werner at 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) > rsync error: error in socket IO (code 10) at io.c(785) [Receiver=3.1.2dev] > > Why rsync cann't let me redirect the stderr of it into a file, say, aaa, > for this case?Because you didn't tell. ? 2>aaaa Note the missing space between die file descriptor and the redirection operator. 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/378f8109/attachment.pgp>
Hongyi Zhao
2015-Apr-15 12:58 UTC
How to capture the stderr of rsync and redirect it into a file?
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 Regards -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Seemingly Similar Threads
- How to capture the stderr of rsync and redirect it into a file?
- How to capture the stderr of rsync and redirect it into a file?
- TLS communication director -> backend with X.509 cert checks?
- Ubuntu package - Was: Re: doveadm-server protocol change?
- doveadm-server protocol change?