Skip to content

ps

ps<O, R>(options?): Promise<R[]>

Defined in: packages/app-system/src/os/ps.ts:166

Get the list of running processes using the ps command.

O extends PsOptions = PsOptions

R = O["fields"] extends never[] ? Partial<PsResult> : Pick<PsResult, TupleToUnion<O["fields"]>>

O

Options for filtering and selecting fields.

Promise<R[]>

A promise that resolves to an array of process information objects.