---
title: "Bash"
slug: "bash"
updated: 2024-09-10T21:17:39Z
published: 2024-09-10T21:17:39Z
canonical: "docs.skillable.com/bash"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bash

Skillable Studio allows execution of scripts against a cloud subscription, as well as executing scripts that do not have a target. Scripts are used in Automated Activities and Life Cycle Actions.

## Interacting with Skillable Studio

Your scripts can communicate success or failure to Skillable Studio in one of two ways.

### Return a Boolean value

```plaintext
//do stuff... all good
echo true
```

```plaintext
//do stuff... uh oh
echo false
```

### Use setActivityResult

```plaintext
//do stuff... all good
set_activity_result Correct
```

```plaintext
//do stuff... uh oh
set_activity_result Incorrect
```

You can also report the result as a score percentage...

```Bash
//do stuff... we want to report success and set the score value as 50%
set_activity_result .5
```

### Send a Notification to the User

Notifications appear as real-time toast notification in the lab client.

```Bash
send_lab_notification "Hello from a script"
```

### Lab Variables

Lab variables are always string name/value pairs. Variable values are scoped to the lab instances and become available within the lab instructions as well as subsequent script executions.

variable_name=value

```Bash
set_lab_variable "firstName" "John"
echo true
```

You can "receive" a variable in your script... `@lab.Variable(firstName)`
