#!/opt/perl5/bin/perl5.005 -w #File Name: clean_start #Author: ### # #Description: The purpose of this file is to search the #rc.log file +for errors and warnings. #status. use diagnostics; open RC, "/etc/rc.log" or die "Can't open rc.log"; my @error = (grep /ERROR/i | /WARNING/i, <RC>); @message = join 'clean_start:', @error; print @message; close RC;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: log search
by particle (Vicar) on Jun 12, 2003 at 15:37 UTC | |
by Aristotle (Chancellor) on Jun 16, 2003 at 14:06 UTC |