|Subject||Scan a file for the word 'error' and send email if found|
|Message||I have a Web task scheduled to run on a
regular basis and it downloads the page to a directory in this format.
I need to be able to scan this file each time it is created and look for the word "Error" Upon finding this word I need it to send an email and attach the file in question.
How do I do it? I have spent a lot of time trying to do this with the "Log file monitor" and it doesnt seem to be possible because it requires a Date and there are no dates in these files...
Thank you for your help on this matter.
Thanks for using Automize.
2) TextSearch task settings: Enter folder name, filename, and search term = "error". leave replace term field blank. Enter any results filepath.
3) In your chain, use the following steps: Step 1 = TextSearch task Set step Option = If exit code > -1 go to step 100 (in this task if the search term is found in the file, the exit code is set as -100. Else exit code = 0 if no term is found, or >0 in case of error. Hence only if exit code = -100, Step 2 will be performed) Step 2 = Email task
-- Sincerely, Melvin Desilva Hitek Software