diff --git a/pym/cl_utils.py b/pym/cl_utils.py index d9d6ea8..567ca2a 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -514,6 +514,12 @@ def removeDir(rmDir): rmtree(rmDir) return True +def getRunCommands(): + """List run program""" + return map(lambda x:open('/proc/%s/cmdline'%x).read().strip(), + filter(lambda x:x.isdigit(), + os.listdir('/proc'))) + def isMount(path): """В случае монтирования директории выдает другой примонтированный путь""" absPath = os.path.abspath(path)