Can you give us a little more details? Usually you would use the waitfor command (might need to specify a timeout longer than the default 30 seconds) or when target.
I'm loading software but it doesn't reply when it's complete. I need to query the unit periodically with a get_status command to find whether it's in progress or complete. The 2 different responses:
DownloadInProgress
OperationSucceeded
DownloadCompleted
OperationSucceeded
Once I get the completed message I want to script to continue with the software activation. Suggestions? Thanks for your time.
It came from another forum user and has been pretty handy over the years. Basically it wraps up to three when statements into a single function and returns which of the (up to) three strings was received, if any.
Thanks Knob, but I'm still having an issue with this script. How do I pass the first line of the response thru the waitlist function? I feel that the second line "OperationSucceeded" is only being passed.
OK, I think the problem is that you're trying to set a value for success/failure in your script and then likely trying to check for that value just after this code in your script. Only ASPECT (and only using certain commands) can set success or failure. What you can do instead is move the appropriate commands into the appropriate if clauses in your script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.