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.
Type Parameters
Section titled “Type Parameters”O extends PsOptions = PsOptions
R = O["fields"] extends never[] ? Partial<PsResult> : Pick<PsResult, TupleToUnion<O["fields"]>>
Parameters
Section titled “Parameters”options?
Section titled “options?”O
Options for filtering and selecting fields.
Returns
Section titled “Returns”Promise<R[]>
A promise that resolves to an array of process information objects.