I hope I can outline this clearly the first time. I have been asked to create a script to do the following:
Search a series of Directories that have been created withing 15 minutes of the current system time for a dynamic file name that ends in (dot)out .out.
If a file with that extension is found, search the file for the word "error".
If error is found, send an email to a data center operator.
If the word is NOT found, do nothing.
I believe I can handle items 3 and 4, but I am looking for help and suggestions in accomplishing item 1.
Thanks in Advance.