Help me in finding logic


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help me in finding logic
# 15  
Old 04-08-2009
I am using

bash-2.05$ uname -a
Linux lppwa783 2.4.9-e.72enterprise #1 SMP Tue Jul 3 21:57:23 EDT 2007 i686 unknown

I asked with the admin, they refused to install the perl. The tail is ok for me.. The cron runs every ten mintues and it will only rotate less than 2000 lines.

thanks
Senthilkumar
# 16  
Old 04-08-2009
There is a good chance that perl is already part of the linux distro , in fact if it's not it might have been deliberately removed, which sound strange.
As a Unix Admin myself, I use wots on production servers to parse some telco logs ...
If he think that perl is a security risk, He should consider updated the kernel instead !
Good luck with the tail ...
# 17  
Old 04-09-2009
The "tail" command has limitations because it buffers the data in a small buffer. See "man tail".
Try this to see if you have the problem:


Code:
# For a 2000+ line logfile
wc -l logfile
tail -2000 logfile | wc -l
# did you get 2000 lines?


Last edited by methyl; 04-09-2009 at 01:12 PM.. Reason: Typo
# 18  
Old 04-09-2009
By the way you can still install perl yourself in your home directory ...
# 19  
Old 04-09-2009
Sorry methyl ... I didnt get you what you're trying say.

bash-2.05$ wc -l Trace.log
3801805 Trace.log
bash-2.05$ tail -2000 Trace.log | wc -l
2000


For laurentv, after a long fight with the Admin with the help of your words in the forum i got the acess of using perl

bash-2.05$ which perl
/usr/bin/perl
bash-2.05$ perl -ver

This is perl, v5.6.1 built for i386-linux

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at Perl.com Home Page, the Perl Home Page.

Now i need to learn the WOTS, and implement that in the DOC..

Thanks
Senthilkumar.
# 20  
Old 04-10-2009
Glade if I helped !!!

Let me know how it turned .

Rgds
Laurent
# 21  
Old 04-10-2009
Laurent do you have any sample script available to check the logs using WOTS, i am unable to get the information in internet.

~aks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
Login or Register to Ask a Question