help with creating new log file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting help with creating new log file
# 1  
Old 02-29-2008
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!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parsing a log file and creating a report script

The log file is huge and lot of information, i would like to parse and make a report . below is the log file looks like: REPORT DATE: Mon Aug 10 04:16:17 CDT 2017 SYSTEN VER: v1.3.0.9 TERMINAL TYPE: prod SYSTEM: nb11cu51 UPTIME: 04:16AM up 182 days 57 mins min MODEL, TYPE, and SN:... (8 Replies)
Discussion started by: amir07
8 Replies

2. UNIX for Advanced & Expert Users

Help with creating script to delete log files/folders

Hi I am new to Linux / scripting language. I need to improve our Linux servers at work and looking to claim some space my deleting log files/ folders on a 5 day basis. Can someone help me with creating a script to do so. Any sample script will be helpful.:b: Regards (2 Replies)
Discussion started by: sachinksl
2 Replies

3. Shell Programming and Scripting

Shell script for creating log file and sending mail?

Hi , I am trying to create shell script which will help me to compare file name in two folder. There is a multiple file store in 2 folder.I want to compare that with the name. If all the file are same then send a mail that "all date is same" if not then create one log file which contain... (4 Replies)
Discussion started by: san_dy123
4 Replies

4. Shell Programming and Scripting

KSH - help needed for creating a script to generate xml file from text file

Dear Members, I have a table in Oracle DB and one of its column name is INFO which has data in text format which we need to fetch in a script and create an xml file of a new table from the input. The contents of a single cell of INFO column is like: Area:app - aam Clean Up Criteria:... (0 Replies)
Discussion started by: Yoodit
0 Replies

5. UNIX for Dummies Questions & Answers

creating separate directories according to file extension and keeping file in different directory as

unix program to which a directory name will be passed as parameter. This directory will contain files with various extensions. This script will create directories with the names of the extention of the files and then put the files in the corresponding folder. All files which do not have any... (2 Replies)
Discussion started by: Deekay.p
2 Replies

6. Shell Programming and Scripting

Creating Log files from Scripts

Hi I would like to create a log file to track the execution of my script. Example, if there were any errors, if it passed or failed etc. How do I go about doing this. My log file will be saved to this location: /var/log/import.log How do I specify the directory? I have been... (1 Reply)
Discussion started by: ladyAnne
1 Replies

7. UNIX for Advanced & Expert Users

Crontab Error - creating zero byte log file

Hi, I am trying to run a shell script using the crontab scheduler, and I am redirecting the log of the script output to some temp log file using the following command. sh somescript.sh 1> /location/somefile.log Evrytime the cronjob triggers this script, It creates a zero byte file in the... (4 Replies)
Discussion started by: DSDexter
4 Replies

8. Shell Programming and Scripting

Help with a shell script for creating a log file

I have a schell script that runs continously on an AIX system. It is actually started from another shell script with the "ksh -x" command and then I just write the output to a log file. This causes the log files to be filled with mostly useless information. I would like to modify this script to... (2 Replies)
Discussion started by: heprox
2 Replies

9. Solaris

creating log files for a backup script on solaris

I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to... (3 Replies)
Discussion started by: valicon
3 Replies

10. UNIX for Advanced & Expert Users

creating log while install

hi i am using borne shell script to install a product. In the script i get from the user some input and then to do pkgadd and some sqlplus commands. I want to capture all the information to the logfile. if i use , tee command i dont get the user entered input. can u let me know... (4 Replies)
Discussion started by: barun007
4 Replies
Login or Register to Ask a Question
MODEMMANAGER(8) 					      System Manager's Manual						   MODEMMANAGER(8)

NAME
ModemManager - modem management daemon SYNOPSIS
ModemManager [--version] | [--help] ModemManager [--debug] [--log-level=<level>] [--log-file=<filename>] [--timestamps] [--relative-timestamps] DESCRIPTION
The ModemManager daemon provides a unified high level API for communicating with (mobile broadband) modems. While the basic commands are standardized, the more advanced operations (like signal quality monitoring while connected) varies a lot. ModemManager is a system daemon and is not meant to be used directly from the command line. OPTIONS
The following options are supported: --version Print the ModemManager software version and exit. --help Print ModemManager's available options and exit. --debug Runs ModemManager with "DEBUG" log level and without daemonizing. This is useful for debugging, as it directs log output to the con- trolling terminal in addition to syslog. --log-level=<level> Sets how much information ModemManager sends to the log destination (usually syslog's "daemon" facility). By default, only informa- tional, warning, and error messages are logged. Given level must be one of "ERR", "WARN", "INFO" or "DEBUG". --log-file=<filename> Specify location of the file where ModemManager will dump its log messages, instead of syslog. --timestamps Include absolute timestamps in the log output. --relative-timestamps Include timestamps, relative to the start time of the daemon, in the log output. SEE ALSO NetworkManager(8). 31 October 2011 MODEMMANAGER(8)