logging on client side on NT
jw at pegasys.ws
Fri Sep 13 10:47:00 EST 2002
On Fri, Sep 13, 2002 at 12:15:59PM +0200, bart.coninckx at watco.be wrote:
> I would like to log whatever happens with rsync on client side when it runs
> with Cygwin on NT4.
> First, I just did a redirect of the screen output to a log-file:
> rsync -rtv --delete --modify-window=2 --stats /cygdrive/g/users/bco/test/
> bee2bs01::d/test/ >>c:\rsync\log\%FDATE%.log
> The problem with this method is that it does not redirect whatever Rsync
> reports as errors; because they are showed on the screen. This is a shame,
> because that's the info that interests us.
> I've fiddled around quite a bit with the "--log-format=" option, but I
> don't get any valid output, perhaps because NT uses another escape
> character than Unix/Linux.
> Anyone any ideas to still be able to capture all error messages into a
The verbosity is sent to STDOUT (file descriptor 1), Errors
go to STDERR (file descriptor 2). The shell is responsible
for redirection, not rsync.
I'm guessing that you are running bash. Look at the section
entitled 'REDIRECTION' in the bash manpage. It does better
job than i could here.
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync