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.
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.