You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Tu <jt...@esidesign.com> on 2005/10/05 18:30:26 UTC

[users@httpd] rotatelogs on Windows

I'm trying to edit my httpd.conf to use rotatelogs for Apache running 
on Windows.

I'm doing this and it doesn't like it.
CustomLog "| bin/rotatelogs logs/access.log 3600" common

I've also tried using the full paths and it doesn't like the space in 
"Program Files"
CustomLog "| c:/Program Files/Apache Group/apache/bin/rotatelogs 
c:/Program Files/Apache Group/apache/logs/access.log 3600" common

Does rotatelogs work differently on Windows?  Do I need to escape 
those space characters?

-James

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] rotatelogs on Windows

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
James Tu wrote:
> I'm trying to edit my httpd.conf to use rotatelogs for Apache running on 
> Windows.
> 
> I'm doing this and it doesn't like it.
> CustomLog "| bin/rotatelogs logs/access.log 3600" common

Did you mean bin/rotatelogs.exe ?

If that doesn't lick it, what about using 'bin\rotatelogs.exe'?

This might be a very odd case where a shell command's shell doesn't like
forward slashes (cmd.exe is picky).  I've actually worked out how to
nest double quotes at one point, so that the command was quoted (useful
for paths-in-spaces and forward slashes.)

cmd.exe likes "c:/winnt/notepad.exe" or c:\winnt\notepad.exe and doesn't
like c:/winnt/notepad.exe.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org