On Fri, 2008-01-25 at 11:34 +0100, Paul Slootman wrote: > On Thu 24 Jan 2008, Matt McCutchen wrote: > > > > is it possible to change those error messages into a standard pattern? > > > > Yes, it would be possible, but it would require going through and > > reformatting each of the 77 FERROR_XFER messages individually and would > > make a few of them less readable (e.g., "link A => B failed" would > > become "B: link from A failed"). Another option would be to print an > > additional "failed to propagate B" message after a failure of any kind > > on file B, and your script could just match those messages. > > Another approach is to prepend each error message with some type of > code, e.g. "link A => B failed" becomes "E0023: link A => B failed" > I remember from my days working with AIX that every tool did that, > and while it looks a bit cluttered, it's a lot simpler to search the > docs for the error code. And processing / detecting errors by scripts > becomes very simple. >
you are right. that is what i am doing right now. prefix each message with all special prefix, easier to grep. > > Paul Slootman -- Ming Zhang @#$%^ purging memory... (*!% http://blackmagic02881.wordpress.com/ http://www.linkedin.com/in/blackmagic02881 -------------------------------------------- -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html