Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-06-2005, 03:30 PM   #1
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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 ...



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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 AM.

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