New option: --progress-newline

Ryan T. Sammartino ryan.sammartino at gmail.com
Thu May 11 08:59:32 GMT 2006


In trying to write a nice GUI for rsync, it was difficult to read
rsync's stdout
when using --progress, as --progress uses \r to make things pretty on
a terminal,
but it's painful to read into another process.

The attached patch made it much easier for me to read and parse the output from
--progress by adding a command-line option --progress-newline, which simply
causes --progress to use \n instead of \r for eol to ease reading stdout.

I hope this is useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: progress-newline.patch
Type: application/octet-stream
Size: 4756 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20060511/e2d10035/progress-newline.obj


More information about the rsync mailing list