command¶
command is a built-in function. It runs a single shell command
exactly as you wrote it on the button.
| Parameter | Required | Default | Meaning |
|---|---|---|---|
command |
yes | — | The shell command to run |
Run one command as written
Pipes and chained commands¶
Commands run through /bin/bash -c, so pipes,
redirects, and && all work inside one command value.
Pipes work inside commands
Use a custom function for repeated commands
If several buttons repeat the same command shape, create a custom function
and give each button only the values that change. Custom parameter names
such as url or host can be written directly on those buttons.
Related¶
script— run a script file instead of an inline command- Built-in functions — both built-in functions
- Shell — how commands are executed
- Confirmation — ask before a risky command