This routine is available starting with SIL Engine™ 1.0.
DescriptionExecutes the command command of the operating system.
Returns the exit code of the program and the output and error streams as strings. Through this you may integrate outside scripts (sh, ksh, perl, ...) with Jira. Streams are limited to 4Kb (only the first 4Kb are taken into account).
Valid Operating System command.
The routine returns an array with 3 elements in such order:
- The operating system exit code of the process being spawned (as string)
- The output stream (limited to 4Kb) as a string
- The error stream (limited to 4Kb) as a string
Let's create a file using system routine and windows command prompt:
Let's invoke a windows .bat script file using system routine:
For windows operating system, you should put the full (absolute) path of the command.