Frank 'xraz' Fricke
2006-Jan-12 17:06 UTC
Feature proposal regarding rsync client's progress output
Hi there! When displaying intra-file progress, recent versions of rsync use \r as line-seperator. While i like that very much on terminals, it gets me into trouble with scripts evaluating that progress-output. Especially with normal perl-IO you can use only one input record seperator. And using \r for that complicates evaluating inter-file progress. I'd like to ask if there is a possibility that this could be made customizable on the command line/in the environment. The imHo perfect solution would be to do it like other programs do: test for the presence of a terminal on stdout (but i guess the latter one is badly portable and maybe hard to implement). If i'm the only person troubled by this it is certainly not worth the work as i can use my own rsync-hack (without any \r). If desired i could also try to implement it myself and send it to you. But that could take as long as of june. I'm not sure if i'll find the time (also depends on how much work that is; didn't check for that) earlier. Anyway, thanks to the developers for a cool piece of software... :) ...Frank (not subscribed to the list) -- "...um das Hassen zu hasssen, und aus Prinzip keins zu haben" Fingerprint: 6CF4 0AE0 021C E9A6 62DD C248 B745 4446 B703 B7F0 -> http://xraz.de/gpg.key -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20060112/6e96fd96/attachment.bin
Wayne Davison
2006-Jan-12 18:02 UTC
Feature proposal regarding rsync client's progress output
On Thu, Jan 12, 2006 at 06:06:20PM +0100, Frank 'xraz' Fricke wrote:> While i like [\r] very much on terminals, it gets me into > trouble with scripts evaluating that progress-output.One solution is to run the output of rsync through "tr" to ask it to change all the CRs into LFs: rsync -av --progress src/ dest/ | tr '\r' '\n' ..wayne..
Seemingly Similar Threads
- Samba AD client's settings transfer
- [klibc:master] nfsmount: Use kernel client's default value for timeo option
- How does tinc server handle the case one client's key file is removed after connection
- Cannot use \\hostname\dir in Windows2000 client's windows explore r
- View the Client's SID