Skip to content

Start, list, read, wait for or kill background jobs

Usage

Terminal window
si job [OPTIONS] <COMMAND>

Flags

NameValueDescriptionDefaultEnv
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.

si job start

Start a background job

Terminal window
si job start [OPTIONS] [SVM] [-- <PROGRAM>...]
NameValueDescriptionDefaultEnv
svmSVMThe SVM to use; defaults to the one set with si use
programPROGRAMThe program and its arguments, after --

Scroll horizontally to see all columns.

NameValueDescriptionDefaultEnv
--commandCOMMANDRun this shell script with bash -c instead of a program
--cwdCWDThe working directory in the SVM; the home directory by default
--envKEY=valueA variable of this job only; repeat it. The value is split at its first =
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.

si job ls

List jobs

Terminal window
si job ls [OPTIONS] [SVM]
NameValueDescriptionDefaultEnv
svmSVMThe SVM to use; defaults to the one set with si use

Scroll horizontally to see all columns.

NameValueDescriptionDefaultEnv
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.

si job logs

Print a job log

Terminal window
si job logs [OPTIONS] [SVM] [NUMBER]
NameValueDescriptionDefaultEnv
svmSVMThe SVM to use; defaults to the one set with si use
numberNUMBERThe job number, as listed by si job ls

Scroll horizontally to see all columns.

NameValueDescriptionDefaultEnv
--followKeep printing new lines until the job endsfalse
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.

si job wait

Wait for a job and return its exit code

Terminal window
si job wait [OPTIONS] [SVM] [NUMBER]
NameValueDescriptionDefaultEnv
svmSVMThe SVM to use; defaults to the one set with si use
numberNUMBERThe job number, as listed by si job ls

Scroll horizontally to see all columns.

NameValueDescriptionDefaultEnv
--timeoutTIMEOUTGive up after this many seconds and exit 124; the job keeps running
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.

si job kill

Kill a job

Terminal window
si job kill [OPTIONS] [SVM] [NUMBER]
NameValueDescriptionDefaultEnv
svmSVMThe SVM to use; defaults to the one set with si use
numberNUMBERThe job number, as listed by si job ls

Scroll horizontally to see all columns.

NameValueDescriptionDefaultEnv
--jsonPrint the result as JSONfalse
--projectPROJECTThe project of the command: an id or a name; SI_PROJECT when the flag is absentSI_PROJECT
--helpPrint help

Scroll horizontally to see all columns.