H A D | utils.py | 17 … def __init__(self, comm, shell=True, fail=True, ns=None, background=False, host=None, timeout=5): argument 29 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE, 55 def __init__(self, comm, shell=True, fail=None, ns=None, host=None, argument 58 shell=shell, fail=fail, ns=ns, host=host) 149 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
|