|
search log file
hi, I know this question probably been asked a thousand times but I can't find any posts that can help me out, so here I am. The problem is at the end of the day I want to execute a script but I only want to invoke it if and only if scripts 1/2/3/4/5/6 executed successfully. So what I did is to write the exit status for each script to their corresponding log file with message like "000 upload complete" for successful upload or "999 upload failure" for error. I want to script another script to search through these log files to see if they have at least one "000 upload complete" and absolutely no "999 upload failure". THANK YOU THAN YOU!
|