execCommand
Executes a command and captures the error code and
standard output.
execCommand
(
command
[,
bNoThrow
])
Parameters
command
The command to execute with its parameters.
bNoThrow
true
to get the output and the error code even if the
command does not return zero (
false
by default).
Return value
Returns a table whose first element corresponds to the
return code of the command (if the return code is
different from zero, there is an anomaly) and the second
element is a character string containing the standard
output produced.
Remarks
Without the
bNothrow
option, an exception is raised if the command cannot be
executed or if the command is executed with an error.
If bNoThrow equals true , an exception is raised only if the command cannot be executed.
The operator needs 'createProcess' rights to use this function, otherwise an exception is raised.
Features
Available in:
- Content management
- Delivery properties
- Typology rule
- JSSP
- SOAP Method
- WebApp
- Workflow