exec command runs a single command inside a running sandbox and streams its output back to the terminal. It fits one-off commands, scripts and automation. For an interactive shell session, use the remote shell command, connect.
Install the CLI and set the
PPIO_API_KEY and PPIO_DOMAIN environment variables before running these commands. See Install and authenticate.Usage
ex. Everything after the sandbox ID is treated as the command to execute.
Arguments
The command to execute. Multiple parts are quoted and joined into a single shell command.
Options
Sets an environment variable for the command, in
KEY=VALUE form. Repeat the option to set several variables.Foreground execution
By default, the command runs in the foreground. Its standard output and standard error stream to the terminal in real time.Background execution
Pass--background to start the command and return immediately without waiting for it to finish. The CLI prints the process ID and returns.
Pipe data into a command
Data piped into the command goes through standard input. The CLI streams it to the remote process and signals end-of-file when the input is exhausted, so tools such ascat, wc and grep terminate correctly.