This method checks if the execution of a remote command has completed. If run-remote is invoked without the optional -wait switch, the execution runs asynchronously. Call this method to verify if a command completes and a result is available. The method hasCompleted() returns true when the command successfully completes, or false when an error occurs that prevents further processing.
This method has the following syntax:
hasCompleted()
The method returns the following values:
Indicates if the command processing has been completed.
Indicates if the command processing has not been completed, for example, host not found.
Example
!! dir c:\*.* /s ? $$stdout.hasCompleted() // true
Copyright © 2013 CA. All rights reserved. |
|