Improve your productivity and save time.  Let your system work for you.
HiTek Software Home
Subject Scan a file for the word 'error' and send email if found
Date   01/19/2006
Message I have a Web task scheduled to run on a regular basis and it downloads the page to a directory in this format. Access_Mover_web_$%DATE::YY-pp-dd_hh-mm%$.htm

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.

Reply1 Hi Keith,

Thanks for using Automize. 
1) You can use a TextSearch task + Email task in a Chain Task (big blue links icon on front panel) to acheive this.]

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

 

Reply2
Reply3
Reply4
Reply5