Invalid RSync return code?

Daniel.J.Botz at Cummins.com Daniel.J.Botz at Cummins.com
Thu Aug 16 06:07:04 EST 2001


Hello,

I am using RSync 2.4.6 on Tru64 UNIX, version 4.0G and 5.1.  My RSync
wrapper script checks the return code from RSync and EMails me when there
are errors.  This seems to work great except if an invalid directory is
given as the source for RSync to replicate.

For example, if I invoke RSync with this command:

rsync /nonexisting_dir host:/target_dir

RSync gives this for output:

building file list ... link_stat /nonexisting_dir : No such file or
directory
done

Number of files: 0
Number of files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 13
Total bytes written: 29
Total bytes read: 20

wrote 29 bytes  read 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00


The return code RSync returns is 0.  Shouldn't RSync be returning a nonzero
return code, like maybe 3?  Is this a bug?

Thanks for your help!
Dan Botz
Cummins Power Generation





More information about the rsync mailing list