Wrox Programmer Forums
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 13th, 2004, 09:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default Logrotation

Hi there,

I have successfully implemented logrotation using VBScript for the logs created by applications that run in my live environment.

Recently while incorporating the same methodology, I found that the Application that populates the logs called 3csyslog keeps doesn't release the log file for rotating it. So I had to
1) kill the app (3csyslog)
2) rotate the log
3) restart the app (3csyslog)

While doing the third step using wsh object, the script does not lose control until the 3csyslog being stopped/killed the next time. I can't have this wait for so long, as the rotation is scheduled to happen either once in a day or twice in a day, depending on the log size.

Is there a better way of doing this?

Can anyone show some light on this?

Thanks for any kind of help from there.
Cheers!

-Vijay G
__________________
- Vijay G









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.