> For the complete documentation index, see [llms.txt](https://scott-kang-kr.gitbook.io/manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scott-kang-kr.gitbook.io/manual/tasks/others/script.md).

# Script

Script task is used to executes .bat/.sh script file.

![](https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image327.png)

## **Input**

&#x20;

| Attribute | Description                                                            |
| --------- | ---------------------------------------------------------------------- |
| Path      | Path of the script file                                                |
| Arguments | Argruments of the script                                               |
| Timeout   | Execution timeout in seconds.                                          |
| MaxOutput | The maximum size of standard out/error message of the script captured. |

&#x20;

## **Output**

&#x20;

<table><thead><tr><th width="228">Attribute</th><th>Description</th></tr></thead><tbody><tr><td>ExitCode</td><td><p>Exit code of the script</p><p>·       0 = success</p><p>·       Non-zero = error</p><p>(*) Non-zero exit code does not mean the failure of the script task.</p><p>(*) If a script does not have an explicit exit code, exit code is implicitly assigned.</p></td></tr><tr><td>OutputMessage</td><td>Standard output/error message from the script</td></tr></tbody></table>

&#x20;

&#x20;

## **Example**

This example receives one parameter #name# and return "Hello #name!". The script returns 0 as exit code.

<figure><img src="https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image328.png" alt=""><figcaption></figcaption></figure>
