si job
Start, list, read, wait for or kill background jobs
Usage
si job [OPTIONS] <COMMAND>Flags
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si job start
Start a background job
si job start [OPTIONS] [SVM] [-- <PROGRAM>...]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
program | PROGRAM | The program and its arguments, after -- |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--command | COMMAND | Run this shell script with bash -c instead of a program | ||
--cwd | CWD | The working directory in the SVM; the home directory by default | ||
--env | KEY=value | A variable of this job only; repeat it. The value is split at its first = | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si job ls
List jobs
si job ls [OPTIONS] [SVM]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si job logs
Print a job log
si job logs [OPTIONS] [SVM] [NUMBER]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
number | NUMBER | The job number, as listed by si job ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--follow | Keep printing new lines until the job ends | false | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si job wait
Wait for a job and return its exit code
si job wait [OPTIONS] [SVM] [NUMBER]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
number | NUMBER | The job number, as listed by si job ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--timeout | TIMEOUT | Give up after this many seconds and exit 124; the job keeps running | ||
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.
si job kill
Kill a job
si job kill [OPTIONS] [SVM] [NUMBER]| Name | Value | Description | Default | Env |
|---|---|---|---|---|
svm | SVM | The SVM to use; defaults to the one set with si use | ||
number | NUMBER | The job number, as listed by si job ls |
Scroll horizontally to see all columns.
| Name | Value | Description | Default | Env |
|---|---|---|---|---|
--json | Print the result as JSON | false | ||
--project | PROJECT | The project of the command: an id or a name; SI_PROJECT when the flag is absent | SI_PROJECT | |
--help | Print help |
Scroll horizontally to see all columns.