Hi! Is it normal to get different return codes from the same rsync command (except for the verbosity option)?? The directory where we want to rsync don't permit write operations (so we should get an "Permission denied" (23) code. Note that we "rename" the file to file2 in the destination directory. We just type: > rsync -a file server:dir_without_permisions/file2 > echo $? > 0 And then > rsync -av file server:dir_without_permisions/file2 > echo $? > 0 But when we type > rsync -avv file server:dir_without_permisions/file2 > echo $? > 23 Does someone get the same behavior?? Thanks Judith
Hi I'm sorry I forgot to mention the scenario: We use rsync 2.6.6 (in both sides) from Debian to Suse with -e option (SSH tunnel) The destination directory has 700 permisions... Think that's all... Thanks again j> Hi! > Is it normal to get different return codes from the same rsync command > (except for the verbosity option)?? > > The directory where we want to rsync don't permit write operations (so > we should get an > "Permission denied" (23) code. > Note that we "rename" the file to file2 in the destination directory. > > We just type: > > rsync -a file server:dir_without_permisions/file2 > > echo $? > > 0 > > And then > > rsync -av file server:dir_without_permisions/file2 > > echo $? > > 0 > > > But when we type > > rsync -avv file server:dir_without_permisions/file2 > > echo $? > > 23 > > Does someone get the same behavior?? > > Thanks > Judith
On Thu, Sep 22, 2005 at 01:25:26PM +0200, Judith Flo wrote:> Is it normal to get different return codes from the same rsync command > (except for the verbosity option)??No, that's not normal at all, and I can't reproduce such a situation. I always see a return code of 23 from rsync if it can't copy a file into a directory (and also an error about the inability to open the temp file in the unwritable directory). Do you have a script, function, or alias that could be stripping away the return code? ..wayne..