nodemap.py
def cmd(cmdline):
    """ Run a space-separated command and return its stdout/stderr.

        Uses shell, blocks until subprocess returns.
    """
    proc = subprocess.Popen(cmdline, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) # need shell else lctl not found
    stdout, stderr = proc.communicate()
    return stdout, stderr
 Run a space-separated command and return its stdout/stderr.

        Uses shell, blocks until subprocess returns.
    
Run a space-separated command and return its stdout/stderr.
Uses shell, blocks until subprocess returns.
Run a space - separated command and return its stdout / stderr . Uses shell blocks until subprocess returns .
def cmd(cmdline):
    proc = subprocess.Popen(cmdline, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) 
    stdout, stderr = proc.communicate()
    return stdout, stderr
def cmd ( cmdline ) : proc = subprocess . Popen ( cmdline , shell = True , stdin = subprocess . PIPE , stdout = subprocess . PIPE ) stdout , stderr = proc . communicate ( ) return stdout , stderr
Run a space-separated command and return its stdout/stderr.
Run a space - separated command and return its stdout / stderr .
""" Run a space-separated command and return its stdout/stderr.

        Uses shell, blocks until subprocess returns.
    """ # need shell else lctl not found
cmdline