01-24-2008 03:34 AM
Hi folks!
I would like to use the logrot.pl utility in windows environment!
Is it possible?
TKS!
Leonardo
01-24-2008 05:05 AM
Yes it is possible.
Copy the command into a .bat file and then add it to scheduled tasks.
01-24-2008 07:17 AM
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 .
02-03-2008 11:49 AM
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?
02-03-2008 11:55 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide