![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| awk script required for finding records in 1 file with corresponding another file. | RRVARMA | Shell Programming and Scripting | 2 | 07-18-2008 12:20 PM |
| Shell Script --- Delete ORA error from data file | sk005 | UNIX for Dummies Questions & Answers | 1 | 09-25-2007 05:26 PM |
| Shell script to append a time for the existing error log file | gsprasanna | UNIX for Advanced & Expert Users | 12 | 07-12-2007 05:07 AM |
| Finding error code | nitinkgoud | SUN Solaris | 2 | 07-15-2006 12:43 PM |
| Error while creating .tar file using script | Rakesh Bhat | Shell Programming and Scripting | 1 | 12-30-2005 01:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi ,
I have a doubt about a shell script to find an ERROR from the log file. But I need to specify a the scan from a particular date and time in the log. Till now I have developed the following script. Please suggest what shall I add in this for date and time. If the script finds a particular error it should throw 1 or else 0. #!/bin/sh # Script to find the error in the log file ERROR="SCHD0061E" read ERROR if [ $ERROR="SCHD0061E" ] ;then echo "1"; else echo "0" fi Kindly suggest what else is missing from this script. And how to specify the path for the log file . Thanks & Regards Last edited by himvat; 11-17-2008 at 03:25 PM.. |
|
||||
|
yes I need to develop a script that will look for an error only in the current date logs and will throw an alert mail to the mail ID
thanks Last edited by himvat; 11-17-2008 at 03:23 PM.. |
| Sponsored Links | ||
|
|