LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-06-2005, 03:30 PM   #1
voodoofxz
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Grep Syslog - email shell script


I am looking for some help on setting up a shell script on a redhat box to grep the syslog server for specific information, place that in a log file of my choice and send that to a specific email address on a once a week/month schedule. Is that even possible? The system is console only no gui.
 
Old 09-06-2005, 04:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
There's quite a few scripts/tools out there that do exactly
that, and do it well, already. Have a look on http://freshmeat.net

logwatch springs to mind, for instance.

That said: it's a reasonably easy thing to achieve with
a shell script and some awk/grep/sed'ing ...




Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script: grep using string with specail charactors? Chowroc Programming 6 11-14-2005 08:47 PM
grep in shell script fails on redhat 3.0 rlangsto Linux - General 4 03-06-2005 07:42 PM
Shell script, validating email and website Joey^s Programming 5 12-04-2004 05:31 PM
Email headers in shell script anjaan Programming 3 07-07-2004 01:30 PM
How do I zip and attach the output data of a grep | awk | mail shell script? 360 Programming 1 05-08-2002 08:26 AM


All times are GMT -5. The time now is 11:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration