---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Execute Shell Script activity

# Execute Shell Script activity {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Execute Shell Script workflow activity runs a MID server shell script within the
workflow.
The Execute Shell Script activity can be used with any workflow to execute a MID server
shell script in the workflow.

## Results

Possible results for this activity are:
{#execute-shell-script-activity__table_lg3_dm5_vy__entry__2}

| Result | Description |
|-|-|
| Success | Found shell script |
| Failure | No shell script found. More error information is available in the activity output error. |
[Table 1. Results]

{#execute-shell-script-activity__table_lg3_dm5_vy}

## Input variables {#execute-shell-script-activity__section_jvl_gfm_3z}

Input variables determine the initial behavior of the activity.
{#execute-shell-script-activity__table_pgm_tfy_jr__entry__2}

| Variable | Description |
|-|-|
| target | IP or fully-qualified domain name (FQDN) of the target CI. |
| scriptValue | Script, as a string value, executed on a Unix system. |
[ ]

{#execute-shell-script-activity__table_pgm_tfy_jr}

## Output variables

The output variables contain data that can be used in subsequent activities.
{#execute-shell-script-activity__table_bnj_jfy_jr__entry__2}

| Variable | Description |
|-|-|
| response | Raw output. Running processes data. |
[Table 2. Output variables]

{#execute-shell-script-activity__table_bnj_jfy_jr}

