![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tail -f | wannalearn | Shell Programming and Scripting | 4 | 04-10-2007 06:22 PM |
| Tail?? | qfwfq | Shell Programming and Scripting | 7 | 06-19-2006 02:15 AM |
| how to sed with tail | redlotus72 | UNIX for Dummies Questions & Answers | 1 | 08-30-2005 06:27 AM |
| using tail -f | cdunavent | Shell Programming and Scripting | 6 | 10-23-2002 06:10 PM |
| Tail User | bbutler3295 | UNIX for Dummies Questions & Answers | 7 | 03-21-2002 06:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help on scripting using tail
Hi, just need help here, i have this command that i need to run all through out the day, basically this will just monitor a logfile and print a line if theres an error.
tail -f L*|grep "PROCESS IS DEAD" this will echo a line "*** PROCESS IS DEAD: RW [Signal w/ Core dump: 10] ***" whenever a program logs a dead process error. what i need is to add a command that will execute every time a line is grep. can someone here help me out. maybe its something that looks like this but i dont know the syntax. tail -f L*|grep "PROCESS IS DEAD" -exec mailx "BLAH BLAH" {} \; can someone help me? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|