I am using the famous logrotate with windows 7 and cygwin, I have the latest cygwin dll but somehow the app doesn't work for me, and the config file seems to be ok. Has anyone encountered this before? my config file is like so
nocreate
/cygdrive/c/log/*.log
{
daily
rotate 14
nocompress
nocopytruncate
}
and the console gives me an unexpected text error and also says that the specified directory cannot be found.
Edit:
error: logrotate.conf:1 unexpected text
error: logrotate.conf:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: logrotate.conf:3 unexpected text
error: logrotate.conf:4 unexpected text
error: logrotate.conf:5 unexpected text
error: logrotate.conf:6 unexpected text
error: logrotate.conf:7 lines must begin with a keyword or a filename (possibly in double quotes)
error: logrotate.conf:8 lines must begin with a keyword or a filename (possibly in double quotes)
error: stat of /cygdrive/C/log/*.log failed: No such file or directory
these are the errors I get from the console after running the app. Everything is ok with permissions.