Skip to main content
Executes a program or command.

Required Parameters

  • name: The name of the command or program to execute.

Optional Parameters

  • arguments: The space-delimited set of command-line arguments for the command or program (for example, <arc:set attr="executable.arguments" value="arg1 arg2 arg3"/>).
  • argarray#: An array of arguments to supply to the command or program. The array is built by creating an argarray# entry for each index (argument) that you want (see the examples below).
  • directory: The directory to start the command or program in. The default value is ..
  • timeout: The maximum amount of time (in seconds) to wait for the command or program. Use -1 to indicate no timeout. The default value is 60.
  • waitforoutput: Whether to wait for the output of the command or program. The default value is true.

Output Attributes

  • sys:output: The output of the command or program.
  • sys:error: The error output, if any, of the command or program.

Examples

.NET

The batch file called here is programmed to output Hello world along with a list of the arguments that were passed in. The output of this script (echo.txt) looks like this:

Linux

The batch file called here is programmed to output hello linux world along with a list of the arguments that were passed in. The output of this script (echo.txt) looks like this: