Hi,
I use the following log format on windows and Unix platforms:
from windows batch script:
--log-format="%%t [%%p]
<recv<%USER_IP%<%USER%<%%f<%%l<%%b"
from unix bash script:
--log-format="%t [%p]
<recv<${USER_IP}<${USER}<%f<%l<%b"
Here are examples of the log lines (on one line):
windows client:
2004/01/28 [2308]
<recv<192.168.0.53<web1<cygdrive/d/www/sproutkicksass.com/photoalbum/pics/2002-08/20020830_06_Poppy_and_Nana.jpg<42764<423
21
unix client:
2004/01/29 04:15:29 [38706]
<recv<192.168.1.254<intertb<usr/home/scheduling/itbschedule.mdb<24272896<335398
The windows is with rsync 2.6.0.
The unix clients are 2.5.6.
Why does the windows setup give only the date and not the time?
Brian
On Thu, Jan 29, 2004 at 02:22:06PM -0800, Brian wrote:> Why does the windows setup give only the date and not the time?The code calls strftime() with the %T format, which doesn't appear to work on your MS Windows setup. You can trying editing util.c to change the %T into %H:%M:%S and see if that will make it work for you: --- util.c 21 Jan 2004 02:45:10 -0000 1.126 +++ util.c 29 Jan 2004 22:56:17 -0000 @@ -956,7 +956,7 @@ char *timestring(time_t t) struct tm *tm = localtime(&t); #ifdef HAVE_STRFTIME - strftime(TimeBuf,sizeof(TimeBuf)-1,"%Y/%m/%d %T",tm); + strftime(TimeBuf,sizeof(TimeBuf)-1,"%Y/%m/%d %H:%M:%S",tm); #else strlcpy(TimeBuf, asctime(tm), sizeof(TimeBuf)); #endif ..wayne..