Login
Back to bricks list
Introduction Version

SysProc

SysProc class.

Wrapper of psutil.Process class. This class that only exposes necessary functionalities to easily manage shell processes.

Functions

GET_ALL_CHILDREN

Return all the chlidren of process recursively.

Return type:
List
IS_ALIVE
Return type:
bool
IS_ZOMBIE
Return type:
bool
KILL
KILL_WITH_CHILDREN
STATS

Get process statistics

Return type:
dict
WAIT

Wait for a process PID to terminate

Parameters:
NameTypeDefault valueDescription
timeoutAny
POPEN - @classmethod
Parameters:
NameTypeDefault valueDescription
cmdAny
Return type:
SysProc
FROM_PID - @staticmethod
Parameters:
NameTypeDefault valueDescription
pidAny
Return type:
SysProc