Hello, i am using currently rsync-2.6.0 with option --log-format=%f to produce a list of the transferred files. This list is then used to generate hard-links for backup-purposes. Now rsync sometimes generates messages like "file has vanished: ..." on STDOUT (_not_ STDERR) which breaks this processing. When using option -q there is no output at all. Is there any way to get a "clean" list of the transferred files (without doing things like grep or sed on the output stream)? Regards, Markus
On Fri, 2004-03-26 14:38:22 +0100, Markus Marquardt <markus.marquardt@atosorigin.com> wrote in message <4064324E.50207@atosorigin.com>:> Now rsync sometimes generates messages like "file has vanished: ..." on > STDOUT (_not_ STDERR) which breaks this processing.Sounds at least surprising. Just prepare a patch to output this on stderr if your scripts break.> Is there any way to get a "clean" list of the transferred files (without > doing things like grep or sed on the output stream)?Well, "grep -v" would IMHO be the "natural" way to clean the output. Long-term solution is more like patching rsync to use stderr, though... MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier B?rger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : lists.samba.org/archive/rsync/attachments/20040326/fe384281/attachment.bin