Hi Djudd,
Have you considered using the built in VBScript function of 'instr' to check to see if "grep" exits in the "str" variable?
The send of the string and the wait for the prompt could be placed in an if statement and only sent if the string does not contain "grep".
Would this be an option?
__________________
Thanks,
Teresa
Teresa Nygren
|