Running Bash Scripts
Run a multi-line bash script inside an isolated sandbox and stream its output.
run-bash-script
Run a multi-line bash script inside an isolated sandbox and stream its output.
Setup
bunx alineo-cli init # starts OpenSandbox in Docker (one-time setup)Run
bun install
bun startWhat it does
- Creates an Ubuntu 22.04 sandbox
- Runs a bash script that prints system info, disk usage, and writes/reads a file
- Streams output to stdout as it arrives
- Deletes the sandbox on completion