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 and How to PAUSE

Status
Not open for further replies.

majpooper

Technical User
Feb 5, 2005
17
US
I am brand new to Aspect - one week of experience - so my questions are kind of basic.

1.) I have a situation where I am capturing logs. After I capture them I want to move on and transmit the next command.

I might get zero logs or two logs or thirty logs.

In the first case I can use a waitfor "zero (0) logs"

I think I figured out how to use an IF statement but the problem is how can I use a waitfor for an unkown quantity of logs - each will give the same string i.e. "END OF REPORT" that indicates the end of each individual log but it is here that I get stuck - how can I capture an unspecified amount of logs then transmit the next command ?

2.) Also is there way to pause the script a few seconds ?
EXAMPLE transmit "command_X ^M"
waitfor "string"
pause 10 seconds
tramsmit "command_Y ^M"

This would help the script from stopping - sometimes after executing a command and getting the output the system is not ready to process the next command for a few seconds. The result is a "system busy - try again later" and the script stops but a pause would solve this problem.
 
waitfor "string" forever, work for me, either waiting for me to enter or waiting for the switch to respond,


john poole
bellsouth business
columbia,sc
 
a command that waitsfor the screen to be idle for the assigned time might work better

waitquiet 10

a command that waits until i finish making an entry

waitfor "string " forever

that one gives me time to look at the output make the needed entry, my enter keys the next line. before i found the forever command the waitfor would time out.

john poole
bellsouth business
columbia,sc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top