01-07-2010
Thanks to Both....
Answering the jlliagre Question
What OS are you running ? Linux 2.4.9-e.72enterprise
Is the log file stored locally ? yes
On what filesystem type ? vxfs
How long does the script takes in average ? less than min but some time it take more than half an hour.
I'm following a wrong logic in the script so this is taking more time. My correct logic is "In last 1000 line finding any exceptio, If found exit from counting and make the counter equal to 1 otherwise leave it zero."
quirkasaurus --> i'll try this one and let you know about the timings. anyway thank you.
Senthil.
8 More Discussions You Might Find Interesting
1. Programming
Dear all,
I have a pro c application running in the unix environement.
This pro c program actually trigger by a java application from sun workstation.
Recently, when we released a new proc c application and notice that the application occupying the CPU resources even through we check that the... (1 Reply)
Discussion started by: ghho
1 Replies
2. UNIX for Dummies Questions & Answers
I have big log file, which contains the netstat output from my application server to a particular DB server. I aim is to plot a daily graph for this. Please find the sample log file below.
@ - ...........................................................
@ - Total number of connection to the ... (3 Replies)
Discussion started by: senthilkumar_ak
3 Replies
3. Shell Programming and Scripting
I have a requirement to separate only some numbers from the input file and produce it in a format.
The input is ( i have took a sample, the actual file contains more than 50000 rows around 840 MB in size)
$cat temp.txt
001 08 002 08 003 06 004 11 005 11 006 08
007 08 008 92* 009 92 010... (1 Reply)
Discussion started by: senthil.ak
1 Replies
4. Solaris
I have very big log file around 2-3 GB in that it contians 24 hours log data. My work is extract only 5-5 data and count the patterns from them. I worte a script in linux and we're using that.
sed -n "/2009 05:/,/2009 17:/p" trace.log | grep -f patterns.txt > temp.log
while read string ;do... (5 Replies)
Discussion started by: senthil.ak
5 Replies
5. Shell Programming and Scripting
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies
6. Programming
i would like to know how can i fine tune the following query since the cost of the query is too high ..
insert into temp temp_1 select a,b,c,d from xxxx
.. database used is IDS.. (1 Reply)
Discussion started by: expert
1 Replies
7. Shell Programming and Scripting
Hi !
My script read out data out of 144 files per day - every ten minutes a file with data.
data-file
WR030B 306.71 0
WR050B 315.13 0
WR120B 308.34 0
WV030B 3.52 0
WV050B 5.06 0
WV120B 6.65 0
TLUFT02B 8.60... (3 Replies)
Discussion started by: IMPe
3 Replies
8. Red Hat
Hello,
OS version is Red Hat Enterprise Linux Server release 6.5 (Santiago).
In one of the filesystem some old files post clone are not getting removed even with 'rm'
# ls -ltr | grep meagpd_62.dbf
-rw-rw---- 1 oracle oinstall 34358697984 Sep 1 08:46 meagpd_62.dbf
# rm... (7 Replies)
Discussion started by: saharookiedba
7 Replies
LEARN ABOUT OPENSOLARIS
times
times.h(3HEAD) Headers times.h(3HEAD)
NAME
times.h, times - file access and modification times structure
SYNOPSIS
#include <sys/times.h>
DESCRIPTION
The <sys/times.h> header defines the structure tms, which is returned by times() and includes the following members:
clock_t tms_utime /* user CPU time */
clock_t tms_stime /* system CPU time */
clock_t tms_cutime /* user CPU time of terminated
child processes */
clock_t tms_cstime /* system CPU time of terminated
child processes */
The clock_t type is defined as described in <sys/types.h>.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
times(2), types.h(3HEAD), attributes(5), standards(5)
SunOS 5.11 10 Sep 2004 times.h(3HEAD)