Skip to main content

Return Code From the Command-line Interface

To determine the result of running the Varicent Incentives command-line interface (CLI), you can check the value that is returned to the caller, either the operating system or another process or tool.

The third-party tool that is used to call Incentives through the CLI might need to know whether the called process was able to complete successfully. These values can be returned:

  • A value of 0 (integer) indicates a successful execution

  • A value of -1 (integer) indicates failed execution

The procedure for collecting a return code depends on the method that is used to start the Incentives application. It is up to the caller of Incentives CLI to capture these values so that this information can be used to take further action.