DO NOT REPLY [Bug 3653] Silence 'vanished files' messages

samba-bugs at samba.org samba-bugs at samba.org
Wed Jun 7 22:41:39 GMT 2006


https://bugzilla.samba.org/show_bug.cgi?id=3653





------- Comment #4 from hashproduct+rsync at gmail.com  2006-06-07 17:41 MST -------
(In reply to comment #3)
> when I'm calling rsync from meep (http://freshmeat.net/projects/meep/) I can't
> filter the error messages or change the error code before meep gets them.

Yes you can!  Write an rsync wrapper script like this:

rsync-no-vanished:
#!/bin/bash
(rsync "$@"; if [ $? == 24 ]; then exit 0; else exit $?; fi) 2>&1 \
    | grep -v 'vanished'

Then edit CMD_RSYNC in meep to refer to rsync-no-vanished instead of rsync.  I
have tested this script, and it blocks all vanished-related messages and exit
codes while letting everything else through.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list