![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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! |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|