Try this:
This will only work if you log rotate the catalina.out files every day (or hour or whenever). Otherwise grep will keep finding the same errors over and over.
I'm about 5 months new on an 5 year old unix system. If anyone can help me identify what causing the below errors i'd really appreciate it!
unix: WARNING: /pci@1f,0/pci@1,1/ide@3/dad@1,0 (dad1):
Uncorrectable data Error: Block 57e10
Unix: WARNING: /pci@1f,0/pci@1,1/ide@3/dad@1,0 (dad1):... (1 Reply)
I am getting this message in the log file.
Apr 29 15:32:02 router ppp: Warning: Label COPYRIGHT rejected -direct connection: Configuration label not found
This repeats every so often, the link is up however...Any ideas why i am getting this. Its freebsd 6.1 and pppoE.
Frank (1 Reply)
Hi,
We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk.
Has anybody got any ideas how I can do this... (3 Replies)
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
(I'm aware log rotation is a common subject, but I tried searching and couldn't find an answer)
For some time now, I've been using the Logfile::Rotate module to rotate logs in a log-monitoring script. So far, I haven't experienced any problems, and it works great because I can use it in Linux... (1 Reply)
I have requirement to prepare script which will grep for latest outofmemory message from the logs. I have used following command to grep the string from the logs,this script is not effective when logs are not getting updated as it will grep for old message.
f=catalina.out
var=`tail -10 $f |... (17 Replies)
Hello Team,
I need help to improve my script which is used to grep 500 error messages in the logs.
I am using following logic in the script to grep 500 error messages in the logs.
var1=`awk '$9 == "500"' access_log | tail -1`
The above logic is not useful if logs are not getting... (1 Reply)
Hi all,
. I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able... (2 Replies)
Hi Guys,
I want to write a script which can grep the logs (server.log) from a file for Error String and output to a other file.
Problems:
How to know about the errors only between the current restart and not in previous as server.log has earlier restarts also?
thanks for the help! Much... (5 Replies)
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT DEBIAN
cccc
CCCC(1) General Commands Manual CCCC(1)NAME
cccc - C and C++ Code Counter, a software metrics tool
SYNOPSIS
cccc [options] file1.c ...
DESCRIPTION
CCCC analyses and reports measurements of source code in C, C++, and Java. It was developed to augment programmers' instinctive applica-
tion of numeric rules of thumb about what constitutes high or low quality products with an automated analysis tool.
CCCC processes the files listed on its command line. If the filenames include '-', read a list of files from standard input.
This program is work in progress and is not well documented. Please be prepared to refer to the source code for the meaning of some
options.
OPTIONS --help Generate this help message.
--outdir=dname
Directory for generated files (default=.cccc).
--html_outfile=fname
Name of primary HTML report generated (default=outdir/cccc.html).
--db_infile=fname
Preload internal database from named file (default=no initial content).
--db_outfile=fname
Save internal database to named file (default=outdir/cccc.db).
--opt_infile=fname
Load options from named file (default=use compiled-in option values, refer to cccc_opt.cc for option information).
--opt_outfile=fname
Save options to named file (default=outdir/cccc.opt).
--lang=string
Use language specified for files specified after this option. Languages supported are c, c++, ada, and java (default=use lan-
guage/extension mapping controlled by options).
--report_mask=hex
Control report content (refer to ccccmain.cc for mask values).
--debug_mask=hex
Control debug output content (refer to ccccmain.cc for mask values).
AUTHOR
CCCC was written by Tim Littlefair <tim_littlefair@hotmail.com>.
This manual page was written by Colin Watson <cjwatson@debian.org> for the Debian system (but may be used by others).
CCCC(1)