The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
creating a file using Perl chriss_58 Shell Programming and Scripting 1 06-03-2008 04:41 AM
Creating a file ravisg Shell Programming and Scripting 2 05-10-2008 03:15 AM
creating a csv file in awk Segwar Shell Programming and Scripting 6 02-29-2008 06:43 AM
Creating a txt file outthere_3 UNIX for Dummies Questions & Answers 1 01-31-2008 07:09 PM
Creating a csv file based on Existing file skywayterrace Shell Programming and Scripting 3 12-02-2007 05:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-29-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
help with creating new log file

Hello,

The problem I am having now is... daily log file (xxxx.0228) exceeds it's max limit, stops logging and brings the daemon down. It won't start the daemon untill a new log file is created which happens at midnight. Once new daily log file starts, it brings up the daemon back up and starts logging again. So I need to create a script that will monitor daily logs lets say do a check every 5 mins. and if they are about to exceed the log file size limit, maybe compress the old daily log file and create a new daily log file or just create a new log file without compressing the old one and maybe send out an e-mail stating that a log file has exceeded it's limit and a new one has been created for the rest of the day. Btw I use ksh
Someone suggested logrotate.. would that help?
Any suggestions would be greatly appreciated.

Thanks!
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0