

def list_processes(self):
    '\n            Returns information about all running processes (on POSIX systems: using ``ps``)\n\n            .. versionadded:: 1.3\n            '
    ps = self['ps']
    lines = ps('-e', '-o', 'pid,uid,stat,args').splitlines()
    lines.pop(0)
    for line in lines:
        parts = line.strip().split()
        (yield ProcInfo(int(parts[0]), int(parts[1]), parts[2], ' '.join(parts[3:])))

dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py LocalMachine.list_processes/original