Wait

Description

Block until the specified request finishes.

Syntax

ounceauto wait -requestid <request_id>

-requestid <request_id>: The ID of the request to wait for.

Return Value

If the request corresponding to <request_id> completes successfully, the return value is 0, otherwise -1.

Example

The following Windows example illustrates a scan of an application file, and then waits for the scan to complete.

ounceauto scanapplication -application_file WG0.paf
ounceauto wait -requestid %errorlevel%

On Linux, the equivalent of this example is:

ounceauto scanapplication -application_file WG0.paf
ounceauto wait -requestid $?