run_command2 — Execute the console command referenced by a command_construct
int **run_command2** ( | cc, | |
| | response, | |
| | session
); | |
Execute the console command referenced by a command_construct. For a list of the available commands see Console Commands.
The command that you wish to execute. For a definition of this data type see command_construct.
The command response.
The session. For a description of this data type see event.
Upon success this command returns
EC_RUN_COMMAND_COMPLETED; upon failure,
EC_RUN_COMMAND_FAILED. If session is not NULL, and some portion of the command execution needs to run asynchronously, then this function will return
The complete list of return values is as follows:
# EC_RUN_COMMAND_COMPLETED 0 # EC_RUN_COMMAND_AGAIN 1 # EC_RUN_COMMAND_FAILED 2 # EC_RUN_COMMAND_NOT_AUTHZ 3 # EC_RUN_COMMAND_NOT_AUTHN 4 # EC_RUN_COMMAND_CONTINUE 5 # EC_RUN_COMMAND_ASYNC 6
It is legal to call this function in the