Skip to content

getstatusoutput

getstatusoutput(cmd: string): [number, string]

Defined in: packages/pythonlib/src/subprocess.ts:273

Get the exit status and output of a shell command.

Parameters

ParameterTypeDescription
cmdstringShell command to run

Returns

[number, string]

Tuple of [exit_status, output]