Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

waitfor || waitfor

Status
Not open for further replies.

lautrepierro

Programmer
Apr 26, 2004
6
CA
Hi,
is it possible to waitfor 2 different string ?
like that:
when target 0 waitfor "DENY" call bla1
when target 1 waitfor "T1-123" call bla2
that will be cool.

Pierre
 
Using the waitfor command itself, this is not possible. However, another ASPECT user once sent me a script that uses several when target commands to look for up to three strings, and then returns which string was returned first (or the fact that none of the string was received) after a specified timeout period. You can find that script here:


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top