Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: If Text Help
Topic Summary: If Text Help
Created On: 09/03/2013 05:35 AM
Status: Read Only
Linear : Threading : Single : Branch
 If Text Help   - DaveAustin - 09/03/2013 05:35 AM  
 If Text Help   - Ricardo Castaneda - 09/04/2013 02:09 PM  
 If Text Help   - JeanDelfosse - 09/04/2013 09:18 PM  
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 09/03/2013 05:35 AM
User is offline View Users Profile Print this message

Author Icon
DaveAustin
Student (5-19 posts)

Posts: 14
Joined: 05/08/2013

Looking for the best way to do this... pardon my ignorance.  I have a text document that updates every five minutes with new data.  I'd like to quickly search the text document and see if one of these five values is in it.  If it is, then do nothing.. if none of the values are there then I want it to send me an email.

 

So, I'm reading the file and storing the data in a variable.

 

Then, I'm simply doing If text %variable% doesn't contain VALUE1 Else If text %variable% doesn't include VALUE2.. if text%variable% doesn't include VALUE3 etc etc ELSE Send Email.

 

Is there a cleaner way to do this?  Maybe through loops or something?



 Category Survey
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1210 guests browsing this forum, which makes a total of 1210 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog