List of rsync output / error messages

Alberto Accomazzi aaccomazzi at cfa.harvard.edu
Thu Feb 7 08:43:27 EST 2002


Joseph,

check out the header file errcode.h in the rsync distribution.
That file and the structure found in log.c map the system exit codes to 
the error messages you refer to, so the best way to programmatically
catch errors is simply to check the exit status returned by rsync.

-- Alberto


In message <B886FEA6.30C7%jannino at jannino.com>, Joseph Annino writes:

> Is there a good place to get information about the list of all possible
> output and error messages rsync generates?  Or should I just muck around the
> source code (which I haven't looked at yet) and find them?
> 
> I am doing something where I would like to parse rsync's output using Perl
> into a set of data structures.  I already have something that works under
> normal conditions.  Eventually I'd like to use that data as part of building
> a Perl/Tk interface.  Of course to parse the output successfully, I need to
> know all the possibilities as surprises can throw things out of whack.
> 
> And this is just an idea, but ways to make rsync's output more easily
> parseable, and more verbose in terms to reporting information that would be
> useful for say making a progress bar would be nice to discuss.
> 
> Thanks.
> 
> 
> -- 
> Joseph Annino Consulting - Perl, PHP, MySQL, Oracle, etc.
> jannino at jannino.com - http://www.jannino.com
> 



****************************************************************************
Alberto Accomazzi                          mailto:aaccomazzi at cfa.harvard.edu
NASA Astrophysics Data System                      http://adsabs.harvard.edu
Harvard-Smithsonian Center for Astrophysics        http://cfawww.harvard.edu
60 Garden Street, MS 83, Cambridge, MA 02138 USA   
****************************************************************************




More information about the rsync mailing list