Hi,
I am getting scheduler log file on daily basis from windows box which contains job status and corresponding date, date is in windows format.
I wanted to write one script which will search the pattern (Exit code) for the today's date and if code is Zero then Job Success message should be written in log else failure..
Log message is as below
"abcd.job" (abcd..bat)
Started 8/27/2014 5:00:00 AM
"abcd.job" (abcd.bat)
Finished 8/27/2014 5:07:00 AM
Result: The task completed with an exit code of (0).
"PBC Analysis.job" (PBC Analysis.bat)
Started 8/27/2014 7:00:00 AM
"Eventlog.job" (Event_clear.vbs)
Started 8/27/2014 7:00:02 AM
"Eventlog.job" (Event_clear.vbs)
Finished 8/27/2014 7:00:05 AM
Result: The task completed with an exit code of (0).
"BUS Analysis.job" (BUS Analysis.bat)
Finished 8/27/2014 7:00:10 AM
Result: The task completed with an exit code of (0).
[ ***** Most recent entry is above this line ***** ]
So in the above log script will look only for the abcd.job and its result for the current date, other jobs should be ignore.
MY server is AIX, please assist.