c:\Program files\CSCOpx\bin\logrot.pl for windows.

Unanswered Question
Jan 24th, 2008

Hi folks!

I would like to use the logrot.pl utility in windows environment!

Is it possible?

TKS!

Leonardo

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
derek.sizeland Thu, 01/24/2008 - 05:05

Yes it is possible.

Copy the command into a .bat file and then add it to scheduled tasks.

Joe Clarke Thu, 01/24/2008 - 07:17

You don't even need to create a batch file. You can schedule logrot.pl directly. For example, to run logrot.pl every day at 1:00 am:

at 01:00 /every:M,T,W,Th,F,S,Su C:\progra~1\CSCOpx\bin\perl.exe C:\progra~1\CSCOpx\bin\logrot.pl

For on using logrot can be found in the Common Services online help at http://server/help/cmf/logrot.html .

Leonardo Roberto Sun, 02/03/2008 - 11:49

This mean...

after configured logrot files, size, path, etc.., with NMSROOT\bin\perl.exe NMSROOT\bin\logrot.pl -c, I need to run it by scheduled task, like you esplained?

Only shedule logrot, I will have applied the configurated log rotation?

Joe Clarke Sun, 02/03/2008 - 11:55

Yes, you must run logrot.pl periodically without the -c argument to get it to rotate the logs. The rotation will be done based on the configuration set when running logrot.pl -c. This config file is stored in NMSROOT/objects/logrot.

Actions

This Discussion