The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copying files and emailing them out jhofilena Shell Programming and Scripting 1 12-18-2007 01:23 AM
Monitoring a directory for new files with .xx and executing command if found krkan Shell Programming and Scripting 4 03-14-2006 11:16 PM
monitoring files copied onto hard disk abhi_abhijith High Level Programming 2 02-15-2006 10:51 AM
SMTP - emailing issue tads98 UNIX for Dummies Questions & Answers 3 07-18-2005 08:32 AM
Perl - Emailing MULTIPLE files as attachment Tonka52 Shell Programming and Scripting 3 02-11-2004 01:19 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-28-2007
davidra davidra is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 3
Monitoring & emailing log files

Hi
..first post !

I have a Unix v445 using solaris 10. I've trolled through various web pages but can't find exactly what I'm looking for.

I have an alert log...or any messages file for that matter I need to check for certain key (error type) phrases - if I find them, they are redirected to a file and emailed to a distribution list. I want to execute this script as a cron job running every hour.

The next time the cron job runs, rather than running from the top again & thus possibly duplicating the same errors, I need a seperate file that shows the linecount from the previous check.....this new check starts its checking from the linecount to the end of the file......the new line count replaces the previous one and so on

Do I need to have a 'collector' that holds the words/phrases I'm looking for ?
_________________

Can anyone help ?

Many thanks

David
 

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0